Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion lib/server/streamujtvresolver.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,14 @@

__name__ = 'streamujtv'

API_SERVER = b64decode('ZnUtY2VjaC5yaGNsb3VkLmNvbQ==')

# Jo panecku, to je prasecina.
try:
import xbmcaddon
API_SERVER = xbmcaddon.Addon(id='plugin.video.sosac.ph').getSetting('streamujtv_api_proxy') or API_SERVER
except:
pass

def supports(url):
return _regex(url) is not None
Expand All @@ -32,7 +40,7 @@ def resolve(url):
'Referer': 'http://www.streamuj.tv/mediaplayer/player.swf',
'Cookie': ','.join("%s=%s" % (c.name, c.value) for c in util._cookie_jar)
}
burl = b64decode('aHR0cDovL2Z1LWNlY2gucmhjbG91ZC5jb20vcGF1dGg=')
burl = 'http://' + API_SERVER + "/pauth"
key = util.request(
'http://www.streamuj.tv/_key.php?auth=3C27f5wk6qB3g7nZ5SDYf7P7k1572rFH1QxV0QQ')
index = 0
Expand Down