one more fix for transcoding

This commit is contained in:
Marcel van der Veldt 2015-03-28 19:11:38 +01:00
parent 74f96b2e13
commit 097dae3d31

View file

@ -99,8 +99,7 @@ class WriteKodiDB():
#set Filename #set Filename
playurl = PlayUtils().getPlayUrl(server, MBitem["Id"], MBitem) playurl = PlayUtils().getPlayUrl(server, MBitem["Id"], MBitem)
if playurl.startswith("http"): if not playurl.startswith("http"):
playurl = "plugin://plugin.video.emby/?id=" + MBitem["Id"] + '&mode=play'
if playurl != KodiItem["file"]: if playurl != KodiItem["file"]:
self.setKodiFilename(KodiItem["movieid"], playurl, "movie") self.setKodiFilename(KodiItem["movieid"], playurl, "movie")
@ -434,8 +433,7 @@ class WriteKodiDB():
#set Filename #set Filename
playurl = PlayUtils().getPlayUrl(server, MBitem["Id"], MBitem) playurl = PlayUtils().getPlayUrl(server, MBitem["Id"], MBitem)
if playurl.startswith("http"): if not playurl.startswith("http"):
playurl = "plugin://plugin.video.emby/?id=" + MBitem["Id"] + '&mode=play'
if playurl != KodiItem["file"]: if playurl != KodiItem["file"]:
self.setKodiFilename(KodiItem["episodeid"], playurl, "episode") self.setKodiFilename(KodiItem["episodeid"], playurl, "episode")