Check for metadata returned from metadata.provider.plex.tv

This commit is contained in:
JonnyWong16 2020-02-20 13:18:47 -08:00
parent 820a2e688c
commit 7b58bcc279

View file

@ -1268,6 +1268,7 @@ class PmsConnect(object):
# Get additional metadata from metadata.provider.plex.tv # Get additional metadata from metadata.provider.plex.tv
if not plex_guid and metadata['live']: if not plex_guid and metadata['live']:
plextv_metadata = self.get_metadata_details(plex_guid=metadata['guid']) plextv_metadata = self.get_metadata_details(plex_guid=metadata['guid'])
if plextv_metadata:
keys_to_update = ['summary', 'rating', 'thumb', 'grandparent_thumb', 'duration', keys_to_update = ['summary', 'rating', 'thumb', 'grandparent_thumb', 'duration',
'guid', 'grandparent_guid', 'genres'] 'guid', 'grandparent_guid', 'genres']
for key in keys_to_update: for key in keys_to_update: