Merge pull request #1595 from croneter/fix-subtitles

Fix PlexKodiConnect changing subtitles for all videos on the PMS
This commit is contained in:
croneter 2021-08-22 20:39:32 +02:00 committed by GitHub
commit 0f7410e0e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 4 deletions

View File

@ -342,8 +342,7 @@ def audio_subtitle_prefs(api, item):
if item.playmethod != v.PLAYBACK_METHOD_TRANSCODE:
LOG.debug('Telling PMS we are not burning in any subtitles')
args = {
'subtitleStreamID': 0,
'allParts': 1
'subtitleStreamID': 0
}
DU().downloadUrl('{server}/library/parts/%s' % part_id,
action_type='PUT',
@ -458,8 +457,7 @@ def setup_transcoding_audio_subtitle_prefs(mediastreams, part_id):
select_subs_index = subtitle_streams_list[resp - 1]
# Now prep the PMS for our choice
args = {
'subtitleStreamID': select_subs_index,
'allParts': 1
'subtitleStreamID': select_subs_index
}
DU().downloadUrl('{server}/library/parts/%s' % part_id,
action_type='PUT',