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

+1 -1
View File
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="plugin.video.movistarplus"
name="Movistar+"
version="0.11.0"
version="0.11.1"
provider-name="Paco8">
<requires>
<!--- <import addon="xbmc.python" version="2.25.0"/> -->
+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))
+1
View File
@@ -13,6 +13,7 @@
<setting type="sep"/>
<setting label="30450" type="action" id="donation" action="RunPlugin(plugin://plugin.video.movistarplus?action=show_donation_dialog)" option="close"/>
-->
<setting id="proxy_address" type="text" label="" value="" default="" visible="false"/>
</category>
<category label="30002">
<setting label="30011" type="bool" id="manifest_modification" default="true"/>
-3
View File
@@ -9,7 +9,6 @@ import xbmcgui
from resources.lib.proxy import Proxy
from resources.lib.addon import *
from resources.lib.log import LOG
from resources.lib.cache import Cache
def export_epg():
from datetime import datetime, timedelta
@@ -37,8 +36,6 @@ if __name__ == '__main__':
proxy = Proxy()
proxy.start()
LOG('proxy_address: {}'.format(proxy.proxy_address))
cache = Cache(profile_dir)
cache.save_file('proxy.txt', proxy.proxy_address)
if addon.getSettingBool('export_epg'):
try: