fix for transcoding
This commit is contained in:
parent
5f8e5105bb
commit
95dc955f6d
2 changed files with 7 additions and 4 deletions
|
@ -76,9 +76,8 @@ class PlayUtils():
|
||||||
|
|
||||||
# Works out if we are direct playing or not
|
# Works out if we are direct playing or not
|
||||||
def isDirectPlay(self, result):
|
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)):
|
if (self.fileExists(result) or (result.get("LocationType") == "FileSystem" and self.isNetworkQualitySufficient(result) == True and self.isLocalPath(result) == False)):
|
||||||
return False
|
return True
|
||||||
else:
|
else:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|
|
@ -1125,7 +1125,11 @@ class WriteKodiDB():
|
||||||
utils.logMsg("MB3 Sync","new filename -->" + newFileName)
|
utils.logMsg("MB3 Sync","new filename -->" + newFileName)
|
||||||
|
|
||||||
######### PROCESS TV SHOW ############
|
######### 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
|
#for tvshows we only store the path in DB
|
||||||
cursor.execute("SELECT idPath as pathid FROM tvshowlinkpath WHERE idShow = ?",(id,))
|
cursor.execute("SELECT idPath as pathid FROM tvshowlinkpath WHERE idShow = ?",(id,))
|
||||||
result = cursor.fetchone()
|
result = cursor.fetchone()
|
||||||
|
@ -1138,7 +1142,7 @@ class WriteKodiDB():
|
||||||
if newFileName.startswith("http"):
|
if newFileName.startswith("http"):
|
||||||
#transcoding or play from stream
|
#transcoding or play from stream
|
||||||
path = "plugin://plugin.video.emby/"
|
path = "plugin://plugin.video.emby/"
|
||||||
filename = "?id=" + mbId + '&mode=play'
|
filename = "plugin://plugin.video.emby/?id=" + mbId + "&mode=play"
|
||||||
|
|
||||||
else:
|
else:
|
||||||
# direct play
|
# direct play
|
||||||
|
|
Loading…
Reference in a new issue