Skip to content

Commit

Permalink
[plugin.video.imdb.trailers] 2.1.19
Browse files Browse the repository at this point in the history
  • Loading branch information
Gujal00 committed Nov 22, 2023
1 parent 464ecaf commit f8265fb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions plugin.video.imdb.trailers/addon.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="plugin.video.imdb.trailers" name="IMDb Trailers" version="2.1.18" provider-name="gujal">
<addon id="plugin.video.imdb.trailers" name="IMDb Trailers" version="2.1.19" provider-name="gujal">
<requires>
<import addon="xbmc.python" version="2.26.0"/>
<import addon="script.module.beautifulsoup4" version="4.0.0"/>
Expand Down Expand Up @@ -31,9 +31,8 @@
<forum>https://forum.kodi.tv/showthread.php?tid=352127</forum>
<website>https://www.imdb.com/trailers/</website>
<email>gujal at protonmail dot com</email>
<news>v2.1.18 (20230825)
[fix] Popular
[new] Threading
<news>v2.1.19 (20231122)
[fix] Playback
</news>
<assets>
<icon>icon.png</icon>
Expand Down
2 changes: 1 addition & 1 deletion plugin.video.imdb.trailers/resources/lib/imdb_trailers.py
Original file line number Diff line number Diff line change
Expand Up @@ -704,7 +704,7 @@ def fetch_video_url(self, video_id):
if r:
details = json.loads(r.group(1)).get('props', {}).get('pageProps', {}).get('videoPlaybackData', {}).get('video')
if details:
details = {i.get('displayName').get('value'): i.get('url') for i in details.get('playbackURLs') if i.get('mimeType') == 'video/mp4'}
details = {i.get('displayName').get('value'): i.get('url') for i in details.get('playbackURLs') if i.get('videoMimeType') == 'MP4'}
vids = [(x[:-1], details[x]) for x in details.keys() if 'p' in x]
vids.sort(key=lambda x: int(x[0]), reverse=True)
if DEBUG:
Expand Down

0 comments on commit f8265fb

Please sign in to comment.