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
############### -- CHECK FOR ADDITIONAL PARTS ################
if (len(item[0][0]) > 1 and
window('emby_%s.playmethod' % playurl) != "Transcode"):
if len(item[0][0]) > 1:
# Only add to the playlist after intros have played
for counter, part in enumerate(item[0][0]):
# Never add first part
@ -194,7 +193,8 @@ class PlaybackUtils():
additionalListItem = xbmcgui.ListItem()
additionalPlayurl = playutils.getPlayUrl(
partNumber=counter)
log.debug("Adding additional part: %s" % counter)
log.debug("Adding additional part: %s, url: %s"
% (counter, additionalPlayurl))
self.setProperties(additionalPlayurl, additionalListItem)
self.setArtwork(additionalListItem)