Fix trailer
This commit is contained in:
parent
0e15daa37a
commit
17913241a1
1 changed files with 7 additions and 2 deletions
|
@ -341,7 +341,12 @@ class Movies(Items):
|
|||
except (KeyError, IndexError):
|
||||
trailer = None
|
||||
else:
|
||||
try:
|
||||
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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue