Override thumb for clips using the art rating_key

This commit is contained in:
JonnyWong16 2020-08-21 10:39:09 -07:00
commit 003f684f8a
No known key found for this signature in database
GPG key ID: 7A649674469E6574
2 changed files with 5 additions and 3 deletions

View file

@ -2018,6 +2018,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))
# Override the thumb for clips
if media_type == 'clip' and metadata_details.get('extra_type') and metadata_details['art']:
metadata_details['thumb'] = metadata_details['art'].replace('/art', '/thumb')
# Overrides for live sessions
if stream_details['live'] and transcode_session:
stream_details['stream_container_decision'] = 'transcode'