mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-26 02:36:10 +00:00
Fix trailer
This commit is contained in:
parent
0e15daa37a
commit
17913241a1
1 changed files with 7 additions and 2 deletions
|
@ -341,8 +341,13 @@ class Movies(Items):
|
||||||
except (KeyError, IndexError):
|
except (KeyError, IndexError):
|
||||||
trailer = None
|
trailer = None
|
||||||
else:
|
else:
|
||||||
trailerId = trailer.rsplit('=', 1)[1]
|
try:
|
||||||
trailer = "plugin://plugin.video.youtube/play/?video_id=%s" % trailerId
|
trailerId = trailer.rsplit('=', 1)[1]
|
||||||
|
except IndexError:
|
||||||
|
self.logMsg("Failed to process trailer: %s" % trailer)
|
||||||
|
trailer = None
|
||||||
|
else:
|
||||||
|
trailer = "plugin://plugin.video.youtube/play/?video_id=%s" % trailerId
|
||||||
|
|
||||||
|
|
||||||
##### GET THE FILE AND PATH #####
|
##### GET THE FILE AND PATH #####
|
||||||
|
|
Loading…
Reference in a new issue