Merge pull request #1592 from croneter/py3-fix-subtitles
Fix PlexKodiConnect changing or removing subtitles for every video on the PMS
This commit is contained in:
commit
a23469c5d6
1 changed files with 2 additions and 4 deletions
|
@ -341,8 +341,7 @@ def audio_subtitle_prefs(api, item):
|
||||||
if item.playmethod != v.PLAYBACK_METHOD_TRANSCODE:
|
if item.playmethod != v.PLAYBACK_METHOD_TRANSCODE:
|
||||||
LOG.debug('Telling PMS we are not burning in any subtitles')
|
LOG.debug('Telling PMS we are not burning in any subtitles')
|
||||||
args = {
|
args = {
|
||||||
'subtitleStreamID': 0,
|
'subtitleStreamID': 0
|
||||||
'allParts': 1
|
|
||||||
}
|
}
|
||||||
DU().downloadUrl('{server}/library/parts/%s' % part_id,
|
DU().downloadUrl('{server}/library/parts/%s' % part_id,
|
||||||
action_type='PUT',
|
action_type='PUT',
|
||||||
|
@ -457,8 +456,7 @@ def setup_transcoding_audio_subtitle_prefs(mediastreams, part_id):
|
||||||
select_subs_index = subtitle_streams_list[resp - 1]
|
select_subs_index = subtitle_streams_list[resp - 1]
|
||||||
# Now prep the PMS for our choice
|
# Now prep the PMS for our choice
|
||||||
args = {
|
args = {
|
||||||
'subtitleStreamID': select_subs_index,
|
'subtitleStreamID': select_subs_index
|
||||||
'allParts': 1
|
|
||||||
}
|
}
|
||||||
DU().downloadUrl('{server}/library/parts/%s' % part_id,
|
DU().downloadUrl('{server}/library/parts/%s' % part_id,
|
||||||
action_type='PUT',
|
action_type='PUT',
|
||||||
|
|
Loading…
Reference in a new issue