Skip to content

Commit

Permalink
v2.4.6_v3
Browse files Browse the repository at this point in the history
  • Loading branch information
Mariusz89B committed May 21, 2023
1 parent 99e1961 commit c7771b0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion addon.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<addon id="plugin.video.viaplay" version="2.4.6-beta.2" name="Viaplay" provider-name="mariusz89b, emilsvennesson, heppen-dev">
<addon id="plugin.video.viaplay" version="2.4.6-beta.3" name="Viaplay" provider-name="mariusz89b, emilsvennesson, heppen-dev">
<requires>
<import addon="script.module.requests" version="2.9.1" />
<import addon="script.module.iso8601" version="0.1.11" />
Expand Down
5 changes: 3 additions & 2 deletions resources/lib/viaplay.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,9 @@ def get_profiles(self):
profiles = None

if data:
if data['embedded'].get('profiles'):
profiles = data['embedded']['profiles']
em = data.get('embedded')
if em:
profiles = em.get('profiles')

return profiles

Expand Down

0 comments on commit c7771b0

Please sign in to comment.