fix the movie addon path

This commit is contained in:
Shaun 2015-06-27 14:23:27 +10:00
parent 44dc9c2dda
commit a1a2901e93

View file

@ -156,9 +156,9 @@ class WriteKodiVideoDB():
filename = playurl.rsplit("/",1)[-1]
path = playurl.replace(filename, "")
else:
path = "plugin://plugin.video.emby/tvshows/" + MBitem["SeriesId"] + "/"
filename = "plugin://plugin.video.emby/tvshows/" + MBitem["SeriesId"] + "/?id=" + MBitem["Id"] + "&mode=play"
path = "plugin://plugin.video.emby/movies/%s/" % MBitem["Id"]
filename = "plugin://plugin.video.emby/movies/%s/?id=%s&mode=play" % (MBitem["Id"],MBitem["Id"])
#create the path
cursor.execute("SELECT idPath as pathid FROM path WHERE strPath = ?",(path,))
result = cursor.fetchone()