mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-13 00:32:58 -07:00
Fix limit quality profile to source bitrate
This commit is contained in:
parent
70e88a9013
commit
4fa0aafcc1
1 changed files with 1 additions and 1 deletions
|
@ -2173,7 +2173,7 @@ class PmsConnect(object):
|
|||
source_bitrate = helpers.cast_to_int(source_media_details.get('bitrate'))
|
||||
try:
|
||||
quailtiy_bitrate = min(
|
||||
b for b in common.VIDEO_QUALITY_PROFILES if stream_bitrate <= b)
|
||||
b for b in common.VIDEO_QUALITY_PROFILES if stream_bitrate <= b <= source_bitrate)
|
||||
quality_profile = common.VIDEO_QUALITY_PROFILES[quailtiy_bitrate]
|
||||
except ValueError:
|
||||
quality_profile = 'Original'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue