diff options
author | enen92 <92enen@gmail.com> | 2018-01-04 22:58:19 +0000 |
---|---|---|
committer | enen92 <92enen@gmail.com> | 2018-01-04 22:58:19 +0000 |
commit | 13207144a482581e773ec9c2f6bdfc2145c6d4e0 (patch) | |
tree | 1765d6ff8a99670e767f01a7e2e39df285bc7068 | |
parent | 36eec828383724d8196a66eecfa124c198d32bc3 (diff) |
[plugin.video.rtpplay] 3.0.2
4 files changed, 13 insertions, 6 deletions
diff --git a/plugin.video.rtpplay/addon.xml b/plugin.video.rtpplay/addon.xml index 2f75318..ee7d9b6 100644 --- a/plugin.video.rtpplay/addon.xml +++ b/plugin.video.rtpplay/addon.xml @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="UTF-8" standalone="yes"?> -<addon id="plugin.video.rtpplay" name="RTP Play" version="3.0.1" provider-name="enen92"> +<addon id="plugin.video.rtpplay" name="RTP Play" version="3.0.2" provider-name="enen92"> <requires> <import addon="xbmc.python" version="2.25.0"/> <import addon="script.module.routing" version="0.2.0"/> @@ -18,7 +18,7 @@ <website>http://rtp.pt/play</website> <email>enen92@kodi.tv</email> <source>https://github.com/enen92/plugin.video.rtpplay</source> - <news>Regex</news> + <news>A 20 seconds fix for live streams</news> <disclaimer>The plugin is unnoficial and not endorsed by RTP. Expect it to break. </disclaimer> <assets> <icon>icon.png</icon> diff --git a/plugin.video.rtpplay/resources/language/resource.language.en_gb/strings.po b/plugin.video.rtpplay/resources/language/resource.language.en_gb/strings.po index b35a0ec..7830488 100644 --- a/plugin.video.rtpplay/resources/language/resource.language.en_gb/strings.po +++ b/plugin.video.rtpplay/resources/language/resource.language.en_gb/strings.po @@ -26,4 +26,8 @@ msgstr "" msgctxt "#32002" msgid "Could not grab stream url. The plugin needs an update." +msgstr "" + +msgctxt "#32003" +msgid "Debug" msgstr ""
\ No newline at end of file diff --git a/plugin.video.rtpplay/resources/lib/plugin.py b/plugin.video.rtpplay/resources/lib/plugin.py index deecfb3..9149a4d 100644 --- a/plugin.video.rtpplay/resources/lib/plugin.py +++ b/plugin.video.rtpplay/resources/lib/plugin.py @@ -65,9 +65,12 @@ def play(): exit(0) is_pseudo_aes = bool(re.findall("var aes = true", req)) - - streams = re.compile('new RTPPlayer\(.*file\:.+?"(.+?)"', re.DOTALL).findall(req) - + + player = re.findall("liveMetadata.+?'(\d+)'\)", req) + player = player[0].strip() if player else '' + + streams = re.compile('var player{}.+?RTPPlayer.+?file\:.+?"(.+?)"'.format(player),re.DOTALL).findall(req) + if streams: final_stream_url = None for stream in streams: diff --git a/plugin.video.rtpplay/resources/settings.xml b/plugin.video.rtpplay/resources/settings.xml index 96f7359..284bd41 100644 --- a/plugin.video.rtpplay/resources/settings.xml +++ b/plugin.video.rtpplay/resources/settings.xml @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="utf-8" standalone="yes"?> <settings> - <setting id="debug" type="bool" label="32001" default="false"/> + <setting id="debug" type="bool" label="32003" default="false"/> </settings> |