mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-08-20 05:13:21 -07:00
Move full resolution outside if statement
This commit is contained in:
parent
85709f754a
commit
8213f270e5
1 changed files with 9 additions and 8 deletions
|
@ -1923,16 +1923,17 @@ class PmsConnect(object):
|
||||||
if transcode_details['transcode_video_codec'] == '*':
|
if transcode_details['transcode_video_codec'] == '*':
|
||||||
transcode_details['transcode_video_codec'] = source_video_details['video_codec']
|
transcode_details['transcode_video_codec'] = source_video_details['video_codec']
|
||||||
|
|
||||||
|
# Set the full resolution by combining video_resolution and video_scan_type
|
||||||
|
source_media_details['video_full_resolution'] = plexpy.common.VIDEO_RESOLUTION_OVERRIDES.get(
|
||||||
|
source_media_details['video_resolution'],
|
||||||
|
source_media_details['video_resolution'] + (source_video_details['video_scan_type'][:1] or 'p'))
|
||||||
|
# Set the full resolution by combining stream_video_resolution and stream_video_scan_type
|
||||||
|
stream_details['stream_video_full_resolution'] = plexpy.common.VIDEO_RESOLUTION_OVERRIDES.get(
|
||||||
|
stream_details['stream_video_resolution'],
|
||||||
|
stream_details['stream_video_resolution'] + (video_details['stream_video_scan_type'][:1] or 'p'))
|
||||||
|
|
||||||
# Get the quality profile
|
# Get the quality profile
|
||||||
if media_type in ('movie', 'episode', 'clip') and 'stream_bitrate' in stream_details:
|
if media_type in ('movie', 'episode', 'clip') and 'stream_bitrate' in stream_details:
|
||||||
# Set the full resolution by combining video_resolution and video_scan_type
|
|
||||||
source_media_details['video_full_resolution'] = plexpy.common.VIDEO_RESOLUTION_OVERRIDES.get(
|
|
||||||
source_media_details['video_resolution'],
|
|
||||||
source_media_details['video_resolution'] + (source_video_details['video_scan_type'][:1] or 'p'))
|
|
||||||
# Set the full resolution by combining stream_video_resolution and stream_video_scan_type
|
|
||||||
stream_details['stream_video_full_resolution'] = plexpy.common.VIDEO_RESOLUTION_OVERRIDES.get(
|
|
||||||
stream_details['stream_video_resolution'],
|
|
||||||
stream_details['stream_video_resolution'] + (video_details['stream_video_scan_type'][:1] or 'p'))
|
|
||||||
if sync_id:
|
if sync_id:
|
||||||
quality_profile = 'Original'
|
quality_profile = 'Original'
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue