Version 0.11.1
This commit is contained in:
1 parent
0a4044a676
commit
4f738f61c7
5 files changed
+5
-6
No files matched your search
@@ -1,7 +1,7 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||||
<addon id="plugin.video.movistarplus"
|
<addon id="plugin.video.movistarplus"
|
||||||
name="Movistar+"
|
name="Movistar+"
|
||||||
version="0.11.0"
|
version="0.11.1"
|
||||||
provider-name="Paco8">
|
provider-name="Paco8">
|
||||||
<requires>
|
<requires>
|
||||||
<!--- <import addon="xbmc.python" version="2.25.0"/> -->
|
<!--- <import addon="xbmc.python" version="2.25.0"/> -->
|
||||||
|
|||||||
@@ -106,7 +106,7 @@ def play(params):
|
|||||||
|
|
||||||
|
|
||||||
# Read the proxy address
|
# 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))
|
LOG('proxy address: {}'.format(proxy))
|
||||||
|
|
||||||
if addon.getSettingBool('manifest_modification') and proxy:
|
if addon.getSettingBool('manifest_modification') and proxy:
|
||||||
@@ -122,7 +122,7 @@ def play(params):
|
|||||||
#headers += '&Host=wv-ottlic-f3.imagenio.telefonica.net'
|
#headers += '&Host=wv-ottlic-f3.imagenio.telefonica.net'
|
||||||
manifest_headers = 'User-Agent=' + useragent
|
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')
|
cdn_token = m.cache.load('cdn.conf')
|
||||||
if not cdn_token:
|
if not cdn_token:
|
||||||
cdn_token = m.get_cdntoken()
|
cdn_token = m.get_cdntoken()
|
||||||
|
|||||||
@@ -276,6 +276,7 @@ class Proxy(object):
|
|||||||
self._httpd_thread = threading.Thread(target=self._server.serve_forever)
|
self._httpd_thread = threading.Thread(target=self._server.serve_forever)
|
||||||
self._httpd_thread.start()
|
self._httpd_thread.start()
|
||||||
self.proxy_address = 'http://{}:{}'.format(HOST, port)
|
self.proxy_address = 'http://{}:{}'.format(HOST, port)
|
||||||
|
addon.setSetting('proxy_address', self.proxy_address)
|
||||||
self.started = True
|
self.started = True
|
||||||
LOG("Proxy Started: {}:{}".format(HOST, port))
|
LOG("Proxy Started: {}:{}".format(HOST, port))
|
||||||
|
|
||||||
|
|||||||
@@ -13,6 +13,7 @@
|
|||||||
<setting type="sep"/>
|
<setting type="sep"/>
|
||||||
<setting label="30450" type="action" id="donation" action="RunPlugin(plugin://plugin.video.movistarplus?action=show_donation_dialog)" option="close"/>
|
<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>
|
||||||
<category label="30002">
|
<category label="30002">
|
||||||
<setting label="30011" type="bool" id="manifest_modification" default="true"/>
|
<setting label="30011" type="bool" id="manifest_modification" default="true"/>
|
||||||
|
|||||||
@@ -9,7 +9,6 @@ import xbmcgui
|
|||||||
from resources.lib.proxy import Proxy
|
from resources.lib.proxy import Proxy
|
||||||
from resources.lib.addon import *
|
from resources.lib.addon import *
|
||||||
from resources.lib.log import LOG
|
from resources.lib.log import LOG
|
||||||
from resources.lib.cache import Cache
|
|
||||||
|
|
||||||
def export_epg():
|
def export_epg():
|
||||||
from datetime import datetime, timedelta
|
from datetime import datetime, timedelta
|
||||||
@@ -37,8 +36,6 @@ if __name__ == '__main__':
|
|||||||
proxy = Proxy()
|
proxy = Proxy()
|
||||||
proxy.start()
|
proxy.start()
|
||||||
LOG('proxy_address: {}'.format(proxy.proxy_address))
|
LOG('proxy_address: {}'.format(proxy.proxy_address))
|
||||||
cache = Cache(profile_dir)
|
|
||||||
cache.save_file('proxy.txt', proxy.proxy_address)
|
|
||||||
|
|
||||||
if addon.getSettingBool('export_epg'):
|
if addon.getSettingBool('export_epg'):
|
||||||
try:
|
try:
|
||||||
|
|||||||
Reference in new issue
Block a user