Version 0.8.5
This commit is contained in:
1 parent
18d7f85b43
commit
d8d081d29b
3 files changed
+8
-4
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.8.4"
|
version="0.8.5"
|
||||||
provider-name="Paco8">
|
provider-name="Paco8">
|
||||||
<requires>
|
<requires>
|
||||||
<!--- <import addon="xbmc.python" version="2.25.0"/> -->
|
<!--- <import addon="xbmc.python" version="2.25.0"/> -->
|
||||||
|
|||||||
@@ -127,6 +127,10 @@ class Movistar(object):
|
|||||||
else:
|
else:
|
||||||
LOG('Loading tokens')
|
LOG('Loading tokens')
|
||||||
data = self.get_token()
|
data = self.get_token()
|
||||||
|
if 'error' in data and self.account['device_id']:
|
||||||
|
# Try registering the device
|
||||||
|
self.register_device()
|
||||||
|
data = self.get_token()
|
||||||
#print_json(data)
|
#print_json(data)
|
||||||
if 'accessToken' in data:
|
if 'accessToken' in data:
|
||||||
self.cache.save_file('tokens.json', json.dumps(data, ensure_ascii=False))
|
self.cache.save_file('tokens.json', json.dumps(data, ensure_ascii=False))
|
||||||
|
|||||||
@@ -105,8 +105,8 @@ def play(params):
|
|||||||
headers += '&User-Agent=Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:88.0) Gecko/20100101 Firefox/88.0'
|
headers += '&User-Agent=Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:88.0) Gecko/20100101 Firefox/88.0'
|
||||||
headers += '&Accept=*/*&Accept-Language=es-ES,es;q=0.8,en-US;q=0.5,en;q=0.3'
|
headers += '&Accept=*/*&Accept-Language=es-ES,es;q=0.8,en-US;q=0.5,en;q=0.3'
|
||||||
headers += '&Referer=https://ver.movistarplus.es/'
|
headers += '&Referer=https://ver.movistarplus.es/'
|
||||||
headers += '&Origin=https://ver.movistarplus.es&Connection=keep-alive'
|
headers += '&Origin=https://ver.movistarplus.es'
|
||||||
headers += '&Host=wv-ottlic-f3.imagenio.telefonica.net'
|
#headers += '&Host=wv-ottlic-f3.imagenio.telefonica.net'
|
||||||
manifest_headers = 'User-Agent=Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:88.0) Gecko/20100101 Firefox/88.0'
|
manifest_headers = 'User-Agent=Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:88.0) Gecko/20100101 Firefox/88.0'
|
||||||
|
|
||||||
if stype == 'tv':
|
if stype == 'tv':
|
||||||
@@ -184,7 +184,7 @@ def play(params):
|
|||||||
if not os.path.exists(subfolder):
|
if not os.path.exists(subfolder):
|
||||||
os.makedirs(subfolder)
|
os.makedirs(subfolder)
|
||||||
|
|
||||||
sublist = m.get_subtitles(url)
|
sublist = m.get_subtitles(params['url'])
|
||||||
LOG('sublist: {}'.format(sublist))
|
LOG('sublist: {}'.format(sublist))
|
||||||
subpaths = []
|
subpaths = []
|
||||||
for sub in sublist:
|
for sub in sublist:
|
||||||
|
|||||||
Reference in new issue
Block a user