Skip to content

Commit

Permalink
fix bug in auth request
Browse files Browse the repository at this point in the history
  • Loading branch information
hubsif committed Apr 4, 2021
1 parent b866a04 commit 20d31bf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions addon.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
<fanart>resources/fanart.jpg</fanart>
</assets>
<news>
v2.1.1 (2021-04-04)
- fix bug in auth request
v2.1.0 (2021-02-27)
- migrate to python 3 (Kodi 19)
v2.0.0 (2019-01-16)
Expand Down
2 changes: 1 addition & 1 deletion default.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def auth_media(jwt, videoid):
response = error.read()

try:
urllib.request.urlopen(urllib.request.Request(heartbeat_url + '/destroy', "", {'xauthorization': jwt, 'Content-Type': 'application/json'})).read()
urllib.request.urlopen(urllib.request.Request(heartbeat_url + '/destroy', "".encode(), {'xauthorization': jwt, 'Content-Type': 'application/json'})).read()
except urllib.error.HTTPError as e:
pass

Expand Down

0 comments on commit 20d31bf

Please sign in to comment.