mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-24 17:56:11 +00:00
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
|
||||
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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue