Skip to content

Commit

Permalink
Version 0.5.7
Browse files Browse the repository at this point in the history
  • Loading branch information
Paco8 committed Jun 20, 2024
1 parent 2810630 commit fc210a7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion addon.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="plugin.video.skyott"
name="SkyOtt"
version="0.5.6"
version="0.5.7"
provider-name="Paco8">
<requires>
<!--- <import addon="xbmc.python" version="2.25.0"/> -->
Expand Down
9 changes: 8 additions & 1 deletion resources/lib/sky.py
Original file line number Diff line number Diff line change
Expand Up @@ -799,7 +799,14 @@ def find_item(term, items):
icon = rel['images']['data'][0]['attributes']['url']
except:
icon = None
t = {'id': att['alias'], 'title': att['title'], 'slug': att['uri'].replace('/watch',''), 'icon': icon}

if 'uri' in att:
slug = att['uri'].replace('/watch','')
else:
slug = i['relationships']['items']['data'][0]['attributes']['slug']
t = {'id': att['alias'], 'title': att['title'], 'slug': slug, 'icon': icon}


res.append(t)
return res

Expand Down

0 comments on commit fc210a7

Please # to comment.