Version 0.11.1

This commit is contained in:
Paco8 committed 2025-05-21 16:31:06 +02:00
1 parent 0a4044a676
commit 4f738f61c7
5 files changed
+5 -6

No files matched your search

+2 -2
View File
@@ -106,7 +106,7 @@ def play(params):
# Read the proxy address
proxy = Movistar.load_file_if_exists(os.path.join(profile_dir, 'proxy.txt'))
proxy = addon.getSetting('proxy_address')
LOG('proxy address: {}'.format(proxy))
if addon.getSettingBool('manifest_modification') and proxy:
@@ -122,7 +122,7 @@ def play(params):
#headers += '&Host=wv-ottlic-f3.imagenio.telefonica.net'
manifest_headers = 'User-Agent=' + useragent
if stype in ['tv', 'u7d', 'rec']:
if True: #stype in ['tv', 'u7d', 'rec']:
cdn_token = m.cache.load('cdn.conf')
if not cdn_token:
cdn_token = m.get_cdntoken()
+1
View File
@@ -276,6 +276,7 @@ class Proxy(object):
self._httpd_thread = threading.Thread(target=self._server.serve_forever)
self._httpd_thread.start()
self.proxy_address = 'http://{}:{}'.format(HOST, port)
addon.setSetting('proxy_address', self.proxy_address)
self.started = True
LOG("Proxy Started: {}:{}".format(HOST, port))