parent
47edacedca
commit
993350fa48
1 changed files with 6 additions and 5 deletions
|
@ -363,11 +363,12 @@ class PlayUtils():
|
||||||
# Load subtitles in the listitem if downloadable
|
# Load subtitles in the listitem if downloadable
|
||||||
if selectSubsIndex in downloadableStreams:
|
if selectSubsIndex in downloadableStreams:
|
||||||
|
|
||||||
url = "%s/library/streams/%s" \
|
sub_url = self.API.addPlexHeadersToUrl(
|
||||||
% (self.server, selectSubsIndex)
|
"%s/library/streams/%s"
|
||||||
url = self.API.addPlexHeadersToUrl(url)
|
% (self.server, selectSubsIndex))
|
||||||
log.info("Downloadable sub: %s: %s" % (selectSubsIndex, url))
|
log.info("Downloadable sub: %s: %s"
|
||||||
listitem.setSubtitles([tryEncode(url)])
|
% (selectSubsIndex, sub_url))
|
||||||
|
listitem.setSubtitles([tryEncode(sub_url)])
|
||||||
else:
|
else:
|
||||||
log.info('Need to burn in subtitle %s' % selectSubsIndex)
|
log.info('Need to burn in subtitle %s' % selectSubsIndex)
|
||||||
playurlprefs["subtitleStreamID"] = selectSubsIndex
|
playurlprefs["subtitleStreamID"] = selectSubsIndex
|
||||||
|
|
Loading…
Reference in a new issue