Skip to content

Commit

Permalink
v2.4.5
Browse files Browse the repository at this point in the history
  • Loading branch information
Mariusz89B committed Apr 17, 2023
1 parent d5779cb commit 2b4efcc
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.5-beta.2" name="Viaplay" provider-name="mariusz89b, emilsvennesson, heppen-dev">
<addon id="plugin.video.viaplay" version="2.4.5" 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 @@ -210,10 +210,11 @@ def get_user_id(self):
return {'id': data['userData']['userId'], 'token': data['userData']['accessToken']}

def get_profiles(self):
url = self.profile_url + '/user-profiles/users/{0}/profiles/'.format(self.get_user_id()['id'])
url = self.profile_url + '/profiles/users/{0}/profiles/'.format(self.get_user_id()['id'])

headers = {
'authorization': 'MTG-AT {0}'.format(self.get_user_id()['token'])
'authorization': 'MTG-AT {0}'.format(self.get_user_id()['token']),
'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36 Edg/112.0.1722.48'
}

params = {
Expand Down

0 comments on commit 2b4efcc

Please sign in to comment.