Skip to content

Commit

Permalink
Version 5.0.11
Browse files Browse the repository at this point in the history
  • Loading branch information
enen92 committed Feb 7, 2021
1 parent 6a80e45 commit 6eadb28
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions 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.rtpplay" name="RTP Play" version="5.0.10" provider-name="enen92, guipenedo">
<addon id="plugin.video.rtpplay" name="RTP Play" version="5.0.11" provider-name="enen92, guipenedo">
<requires>
<import addon="xbmc.python" version="2.25.0"/>
<import addon="script.module.routing" version="0.2.0"/>
Expand All @@ -23,7 +23,7 @@
<email>[email protected]</email>
<source>https://github.com/enen92/plugin.video.rtpplay</source>
<news>
- Move xbmc.translatepath to xbmcvfs.translatepath
- Fix streams
</news>
<disclaimer lang="en_GB">The plugin is unofficial and not endorsed by RTP. Expect it to break. </disclaimer>
<disclaimer lang="pt_PT">Este plugin não é oficial nem desenvolvido pela RTP. </disclaimer>
Expand Down
3 changes: 3 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
Version 5.0.11 (7/2/2021)
- Fix streams

Version 5.0.6 (7/4/2020)
- Addon is now supported in matrix

Expand Down
2 changes: 1 addition & 1 deletion resources/lib/channels.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-

HEADERS = {
"User-Agent": "Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.61 Mobile Safari/537.36",
"User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.146 Safari/537.36",
"Referer": "https://www.rtp.pt/",
}

Expand Down
2 changes: 1 addition & 1 deletion resources/lib/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ def programs_episodes():
for a in soup.find_all('a'):
url = a.get('href')
if a.find('script') != None:
match = re.search(r'\'(.+?)\'', a.find('script').text)
match = re.search(r'\'(.+?)\'', str(a.find('script')))
if len(match.groups()) > 0:
img = match.group(1)
metas = a.find_next_sibling('i').find_all('meta')
Expand Down

0 comments on commit 6eadb28

Please sign in to comment.