From 9e930f09ca12fd35e3b9e6c8a91ea7ffb719ec6f Mon Sep 17 00:00:00 2001 From: croneter Date: Thu, 7 Nov 2019 07:00:46 +0100 Subject: [PATCH] Fix transcoding quality degenerating quickly while playing with a new setting to deactivate auto quality for transcoding --- resources/language/resource.language.en_gb/strings.po | 4 ++++ resources/lib/plex_functions.py | 2 +- resources/settings.xml | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/resources/language/resource.language.en_gb/strings.po b/resources/language/resource.language.en_gb/strings.po index c5ea3bb6..8e4966d9 100644 --- a/resources/language/resource.language.en_gb/strings.po +++ b/resources/language/resource.language.en_gb/strings.po @@ -250,6 +250,10 @@ msgctxt "#30160" msgid "Video Quality if Transcoding necessary" msgstr "" +msgctxt "#30161" +msgid "Auto-adjust transcoding quality (deactivate for Chromecast)" +msgstr "" + msgctxt "#30165" msgid "Direct Play" msgstr "" diff --git a/resources/lib/plex_functions.py b/resources/lib/plex_functions.py index 7a54a240..ea571e90 100644 --- a/resources/lib/plex_functions.py +++ b/resources/lib/plex_functions.py @@ -1103,7 +1103,7 @@ def transcoding_arguments(path, media, part, playmethod, args=None): 'partIndex': part, # all the rest 'audioBoost': utils.settings('audioBoost'), - 'autoAdjustQuality': 1, + 'autoAdjustQuality': 1 if utils.settings('auto_adjust_transcode_quality') == 'true' else 0, 'protocol': 'hls', # seen in the wild: 'http', 'dash', 'http', 'hls' 'session': v.PKC_MACHINE_IDENTIFIER, # TODO: create new unique id 'fastSeek': 1, diff --git a/resources/settings.xml b/resources/settings.xml index 4d548290..5a98c653 100644 --- a/resources/settings.xml +++ b/resources/settings.xml @@ -113,6 +113,7 @@ +