Skip to content

Commit

Permalink
v0.4.14
Browse files Browse the repository at this point in the history
  • Loading branch information
fayer3 committed Oct 23, 2020
1 parent 17df903 commit d1f8cba
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 3 additions & 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" standalone="yes"?>
<addon id="plugin.video.joyn_app" name="Joyn" version="0.4.13" provider-name="fayer3">
<addon id="plugin.video.joyn_app" name="Joyn" version="0.4.14" provider-name="fayer3">
<requires>
<import addon="xbmc.python" version="2.25.0"/>
<import addon="script.module.routing" version="0.2.0"/>
Expand Down Expand Up @@ -74,6 +74,8 @@
- VOD Abfrage repariert dank hrickes.
0.4.13:
- ändernder VOD Abfrage zu der vom Server erhaltenen, dies limitiert tie Auflösung auf SD ohne Plus+.
0.4.14:
- beheben von padding Fehler.
</news>
<assets>
<icon>resources/icon.png</icon>
Expand Down
4 changes: 3 additions & 1 deletion changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,6 @@ v0.4.11:
v0.4.12:
- fixed VOD request thanks to hrickes.
v0.4.13:
- change VOD request to the one received from the server, this limits playback in most cases to SD resolution without Plus+.
- change VOD request to the one received from the server, this limits playback in most cases to SD resolution without Plus+.
v0.4.14:
- fix padding error.
4 changes: 2 additions & 2 deletions resources/lib/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -995,9 +995,9 @@ def play_video(video_id, tvshow_id, brand, duration):
if 'yo.p.fn' in parsed_query and len(parsed_query['yo.p.fn']) > 0:
found = True
#add missing padding
base64_url_with_padding = parsed_query['yo.p.fn'][0] + '==='
base64_url_with_padding = parsed_query['yo.p.fn'][0] + ('='*(4-len(parsed_query['yo.p.fn'][0])%4))
log(u'base64 url: {0}'.format(base64_url_with_padding))
video_url = base64.b64decode(base64_url_with_padding)
video_url = base64.urlsafe_b64decode(str(base64_url_with_padding))
if not found:
video_url_data = get_url(video_url, headers={'User-Agent': ids.video_useragent}, key = False, critical = True)
# get base url
Expand Down

0 comments on commit d1f8cba

Please sign in to comment.