diff options
Diffstat (limited to 'plugin.video.rtpplay/resources')
-rw-r--r-- | plugin.video.rtpplay/resources/language/resource.language.en_gb/strings.po | 4 | ||||
-rw-r--r-- | plugin.video.rtpplay/resources/lib/plugin.py | 9 | ||||
-rw-r--r-- | plugin.video.rtpplay/resources/settings.xml | 2 |
3 files changed, 11 insertions, 4 deletions
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> |