Fix transcoding for several parts

This commit is contained in:
tomkat83 2016-11-08 21:00:13 +01:00
parent 332640cf48
commit 1f7d785afc

View file

@ -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)