Fix transcoding for several parts
This commit is contained in:
parent
332640cf48
commit
1f7d785afc
1 changed files with 3 additions and 3 deletions
|
@ -182,8 +182,7 @@ class PlaybackUtils():
|
||||||
self.currentPosition += 1
|
self.currentPosition += 1
|
||||||
|
|
||||||
############### -- CHECK FOR ADDITIONAL PARTS ################
|
############### -- CHECK FOR ADDITIONAL PARTS ################
|
||||||
if (len(item[0][0]) > 1 and
|
if len(item[0][0]) > 1:
|
||||||
window('emby_%s.playmethod' % playurl) != "Transcode"):
|
|
||||||
# Only add to the playlist after intros have played
|
# Only add to the playlist after intros have played
|
||||||
for counter, part in enumerate(item[0][0]):
|
for counter, part in enumerate(item[0][0]):
|
||||||
# Never add first part
|
# Never add first part
|
||||||
|
@ -194,7 +193,8 @@ class PlaybackUtils():
|
||||||
additionalListItem = xbmcgui.ListItem()
|
additionalListItem = xbmcgui.ListItem()
|
||||||
additionalPlayurl = playutils.getPlayUrl(
|
additionalPlayurl = playutils.getPlayUrl(
|
||||||
partNumber=counter)
|
partNumber=counter)
|
||||||
log.debug("Adding additional part: %s" % counter)
|
log.debug("Adding additional part: %s, url: %s"
|
||||||
|
% (counter, additionalPlayurl))
|
||||||
|
|
||||||
self.setProperties(additionalPlayurl, additionalListItem)
|
self.setProperties(additionalPlayurl, additionalListItem)
|
||||||
self.setArtwork(additionalListItem)
|
self.setArtwork(additionalListItem)
|
||||||
|
|
Loading…
Reference in a new issue