mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-27 03:06:10 +00:00
with direct paths make sure a path was returned
This commit is contained in:
parent
2bde8f66b7
commit
5fa7387e99
1 changed files with 10 additions and 14 deletions
|
@ -616,19 +616,15 @@ class WriteKodiVideoDB():
|
||||||
#### ADD OR UPDATE THE FILE AND PATH ###########
|
#### ADD OR UPDATE THE FILE AND PATH ###########
|
||||||
#### NOTE THAT LASTPLAYED AND PLAYCOUNT ARE STORED AT THE FILE ENTRY
|
#### NOTE THAT LASTPLAYED AND PLAYCOUNT ARE STORED AT THE FILE ENTRY
|
||||||
if addon.getSetting('useDirectPaths') == 'true':
|
if addon.getSetting('useDirectPaths') == 'true':
|
||||||
if True: #PlayUtils().isDirectPlay(MBitem): # dont do the exists check
|
|
||||||
playurl = PlayUtils().directPlay(MBitem)
|
playurl = PlayUtils().directPlay(MBitem)
|
||||||
#use the direct file path
|
if playurl == False:
|
||||||
if "\\" in playurl:
|
return
|
||||||
|
elif "\\" in playurl:
|
||||||
filename = playurl.rsplit("\\",1)[-1]
|
filename = playurl.rsplit("\\",1)[-1]
|
||||||
path = playurl.replace(filename, "")
|
path = playurl.replace(filename, "")
|
||||||
elif "/" in playurl:
|
elif "/" in playurl:
|
||||||
filename = playurl.rsplit("/",1)[-1]
|
filename = playurl.rsplit("/",1)[-1]
|
||||||
path = playurl.replace(filename, "")
|
path = playurl.replace(filename, "")
|
||||||
else:
|
|
||||||
#for transcoding we just use the server's streaming path because I couldn't figure out how to set the plugin path in the music DB
|
|
||||||
path = server + "/Video/%s/" %MBitem["Id"]
|
|
||||||
filename = "stream.mp4"
|
|
||||||
else:
|
else:
|
||||||
path = "plugin://plugin.video.emby/tvshows/" + MBitem["SeriesId"] + "/"
|
path = "plugin://plugin.video.emby/tvshows/" + MBitem["SeriesId"] + "/"
|
||||||
filename = "plugin://plugin.video.emby/tvshows/" + MBitem["SeriesId"] + "/?id=" + MBitem["Id"] + "&mode=play"
|
filename = "plugin://plugin.video.emby/tvshows/" + MBitem["SeriesId"] + "/?id=" + MBitem["Id"] + "&mode=play"
|
||||||
|
|
Loading…
Reference in a new issue