mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-12 21:26:10 +00:00
one more fix for transcoding
This commit is contained in:
parent
74f96b2e13
commit
097dae3d31
1 changed files with 6 additions and 8 deletions
|
@ -99,10 +99,9 @@ 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")
|
|
||||||
|
|
||||||
#update common properties
|
#update common properties
|
||||||
duration = (int(timeInfo.get('Duration'))*60)
|
duration = (int(timeInfo.get('Duration'))*60)
|
||||||
|
@ -434,10 +433,9 @@ 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")
|
|
||||||
|
|
||||||
#update common properties
|
#update common properties
|
||||||
duration = (int(timeInfo.get('Duration'))*60)
|
duration = (int(timeInfo.get('Duration'))*60)
|
||||||
|
|
Loading…
Reference in a new issue