fix for transcoding

This commit is contained in:
Marcel van der Veldt 2015-04-01 21:32:25 +02:00
parent 5f8e5105bb
commit 95dc955f6d
2 changed files with 7 additions and 4 deletions

View File

@ -76,9 +76,8 @@ class PlayUtils():
# Works out if we are direct playing or not
def isDirectPlay(self, result):
return False
if (self.fileExists(result) or (result.get("LocationType") == "FileSystem" and self.isNetworkQualitySufficient(result) == True and self.isLocalPath(result) == False)):
return False
return True
else:
return False

View File

@ -1125,7 +1125,11 @@ class WriteKodiDB():
utils.logMsg("MB3 Sync","new filename -->" + newFileName)
######### PROCESS TV SHOW ############
if fileType == "tvshow" and not newFileName.startswith("http"):
if fileType == "tvshow":
if newFileName.startswith("http"):
newFileName = "plugin://plugin.video.emby/"
#for tvshows we only store the path in DB
cursor.execute("SELECT idPath as pathid FROM tvshowlinkpath WHERE idShow = ?",(id,))
result = cursor.fetchone()
@ -1138,7 +1142,7 @@ class WriteKodiDB():
if newFileName.startswith("http"):
#transcoding or play from stream
path = "plugin://plugin.video.emby/"
filename = "?id=" + mbId + '&mode=play'
filename = "plugin://plugin.video.emby/?id=" + mbId + "&mode=play"
else:
# direct play