mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-26 02:36:10 +00:00
fix the movie addon path
This commit is contained in:
parent
44dc9c2dda
commit
a1a2901e93
1 changed files with 3 additions and 3 deletions
|
@ -156,9 +156,9 @@ class WriteKodiVideoDB():
|
||||||
filename = playurl.rsplit("/",1)[-1]
|
filename = playurl.rsplit("/",1)[-1]
|
||||||
path = playurl.replace(filename, "")
|
path = playurl.replace(filename, "")
|
||||||
else:
|
else:
|
||||||
path = "plugin://plugin.video.emby/tvshows/" + MBitem["SeriesId"] + "/"
|
path = "plugin://plugin.video.emby/movies/%s/" % MBitem["Id"]
|
||||||
filename = "plugin://plugin.video.emby/tvshows/" + MBitem["SeriesId"] + "/?id=" + MBitem["Id"] + "&mode=play"
|
filename = "plugin://plugin.video.emby/movies/%s/?id=%s&mode=play" % (MBitem["Id"],MBitem["Id"])
|
||||||
|
|
||||||
#create the path
|
#create the path
|
||||||
cursor.execute("SELECT idPath as pathid FROM path WHERE strPath = ?",(path,))
|
cursor.execute("SELECT idPath as pathid FROM path WHERE strPath = ?",(path,))
|
||||||
result = cursor.fetchone()
|
result = cursor.fetchone()
|
||||||
|
|
Loading…
Reference in a new issue