Fix ISO transcode

I don't know that iso transcode is possible, but at least it won't crash
due to emby not probing iso files anymore (no more media info detected)
This commit is contained in:
angelblue05 2016-04-14 17:38:08 -05:00
parent 308ac1a9d6
commit aed9eee6a5

View file

@ -188,8 +188,12 @@ class PlaybackUtils():
# For transcoding only, ask for audio/subs pref
if window('emby_%s.playmethod' % playurl) == "Transcode":
playurl = playutils.audioSubsPref(playurl, listitem)
window('emby_%s.playmethod' % playurl, value="Transcode")
# Filter ISO since Emby does not probe anymore
if self.item.get('VideoType') == "Iso":
self.logMsg("Skipping audio/subs prompt, ISO detected.", 1)
else:
playurl = playutils.audioSubsPref(playurl, listitem)
window('emby_%s.playmethod' % playurl, value="Transcode")
listitem.setPath(playurl)
self.setProperties(playurl, listitem)