Skip to content

Commit 6eadb28

Browse files
committed
Version 5.0.11
1 parent 6a80e45 commit 6eadb28

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

addon.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2-
<addon id="plugin.video.rtpplay" name="RTP Play" version="5.0.10" provider-name="enen92, guipenedo">
2+
<addon id="plugin.video.rtpplay" name="RTP Play" version="5.0.11" provider-name="enen92, guipenedo">
33
<requires>
44
<import addon="xbmc.python" version="2.25.0"/>
55
<import addon="script.module.routing" version="0.2.0"/>
@@ -23,7 +23,7 @@
2323
<email>enen92@kodi.tv</email>
2424
<source>https://github.com/enen92/plugin.video.rtpplay</source>
2525
<news>
26-
- Move xbmc.translatepath to xbmcvfs.translatepath
26+
- Fix streams
2727
</news>
2828
<disclaimer lang="en_GB">The plugin is unofficial and not endorsed by RTP. Expect it to break. </disclaimer>
2929
<disclaimer lang="pt_PT">Este plugin não é oficial nem desenvolvido pela RTP. </disclaimer>

changelog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
Version 5.0.11 (7/2/2021)
2+
- Fix streams
3+
14
Version 5.0.6 (7/4/2020)
25
- Addon is now supported in matrix
36

resources/lib/channels.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# -*- coding: utf-8 -*-
22

33
HEADERS = {
4-
"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",
4+
"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",
55
"Referer": "https://www.rtp.pt/",
66
}
77

resources/lib/plugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ def programs_episodes():
305305
for a in soup.find_all('a'):
306306
url = a.get('href')
307307
if a.find('script') != None:
308-
match = re.search(r'\'(.+?)\'', a.find('script').text)
308+
match = re.search(r'\'(.+?)\'', str(a.find('script')))
309309
if len(match.groups()) > 0:
310310
img = match.group(1)
311311
metas = a.find_next_sibling('i').find_all('meta')

0 commit comments

Comments
 (0)