Merge pull request #1331 from samwiseg00/fix/pms_video_codec

Override * in video codecs
This commit is contained in:
JonnyWong16 2018-11-02 19:59:48 -07:00 committed by GitHub
commit 79b5f3c36f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1894,6 +1894,12 @@ class PmsConnect(object):
if transcode_details['transcode_audio_codec'] == '*':
transcode_details['transcode_audio_codec'] = source_audio_details['audio_codec']
# Override * in video codecs
if stream_details['stream_video_codec'] == '*':
stream_details['stream_video_codec'] = source_video_details['video_codec']
if transcode_details['transcode_video_codec'] == '*':
transcode_details['transcode_video_codec'] = source_video_details['video_codec']
# Get the quality profile
if media_type in ('movie', 'episode', 'clip') and 'stream_bitrate' in stream_details:
if sync_id: