Get additional Live TV metadata from metadata.provider.plex.tv

This commit is contained in:
JonnyWong16 2020-02-17 20:52:16 -08:00
parent 5d1bc3cf9b
commit df851e67f9
5 changed files with 44 additions and 41 deletions

View file

@ -161,10 +161,6 @@ class Users(object):
else:
user_thumb = common.DEFAULT_USER_THUMB
# Fake Live TV air date using added_at timestamp
if item['live'] and not item['originally_available_at']:
item['originally_available_at'] = helpers.timestamp_to_iso_date(item['added_at'])
# Rename Mystery platform names
platform = common.PLATFORM_NAME_OVERRIDES.get(item['platform'], item['platform'])
@ -274,10 +270,6 @@ class Users(object):
else:
thumb = item["thumb"]
# Fake Live TV air date using added_at timestamp
if item['live'] and not item['originally_available_at']:
item['originally_available_at'] = helpers.timestamp_to_iso_date(item['added_at'])
# Rename Mystery platform names
platform = common.PLATFORM_NAME_OVERRIDES.get(item["platform"], item["platform"])
@ -578,10 +570,6 @@ class Users(object):
else:
thumb = row['thumb']
# Fake Live TV air date using added_at timestamp
if row['live'] and not row['originally_available_at']:
row['originally_available_at'] = helpers.timestamp_to_iso_date(row['added_at'])
recent_output = {'row_id': row['id'],
'media_type': row['media_type'],
'rating_key': row['rating_key'],