Add air date to tables for non-episodic Live TV
This commit is contained in:
@@ -1961,6 +1961,10 @@ class PmsConnect(object):
|
||||
source_subtitle_details = next((p for p in source_media_part_streams if p['id'] == subtitle_id),
|
||||
next((p for p in source_media_part_streams if p['type'] == '3'), source_subtitle_details))
|
||||
|
||||
# Fake Live TV air date using added_at timestamp
|
||||
if stream_details['live'] and not metadata_details['originally_available_at']:
|
||||
metadata_details['originally_available_at'] = helpers.timestamp_to_iso_date(metadata_details['added_at'])
|
||||
|
||||
# Overrides for live sessions
|
||||
if stream_details['live'] and transcode_session:
|
||||
stream_details['stream_container_decision'] = 'transcode'
|
||||
|
Reference in New Issue
Block a user