Version 0.7.10
This commit is contained in:
1 parent
3a13c5d508
commit
be52005519
2 files changed
+10
-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.7.9"
|
version="0.7.10"
|
||||||
provider-name="Paco8">
|
provider-name="Paco8">
|
||||||
<requires>
|
<requires>
|
||||||
<!--- <import addon="xbmc.python" version="2.25.0"/> -->
|
<!--- <import addon="xbmc.python" version="2.25.0"/> -->
|
||||||
|
|||||||
@@ -670,6 +670,12 @@ class Movistar(object):
|
|||||||
res[name] = d
|
res[name] = d
|
||||||
return res
|
return res
|
||||||
|
|
||||||
|
def get_ficha_url(self, id, mode='GLOBAL', catalog=''):
|
||||||
|
url = self.endpoints['ficha'].format(deviceType='webplayer', id=id, profile=self.account['platform'], mediatype='FOTOV', version='7.1', mode=mode, catalog=catalog, channels='', state='', mdrm='true', demarcation=self.account['demarcation'], legacyBoxOffice='')
|
||||||
|
url = url.replace('state=&', '')
|
||||||
|
#print(url)
|
||||||
|
return url
|
||||||
|
|
||||||
def get_title(self, data):
|
def get_title(self, data):
|
||||||
t = {}
|
t = {}
|
||||||
t['info'] = {}
|
t['info'] = {}
|
||||||
@@ -761,7 +767,7 @@ class Movistar(object):
|
|||||||
if content:
|
if content:
|
||||||
data = json.loads(content)
|
data = json.loads(content)
|
||||||
else:
|
else:
|
||||||
url = self.endpoints['ficha'].format(deviceType='webplayer', id=id, profile=self.account['platform'], mediatype='FOTOV', version='7.1', mode='GLOBAL', catalog=catalog, channels='', state='', mdrm='true', demarcation=self.account['demarcation'], legacyBoxOffice='')
|
url = self.get_ficha_url(id=id, catalog=catalog)
|
||||||
#print(url)
|
#print(url)
|
||||||
data = self.net.load_data(url)
|
data = self.net.load_data(url)
|
||||||
self.cache.save_file(cache_filename, json.dumps(data, ensure_ascii=False))
|
self.cache.save_file(cache_filename, json.dumps(data, ensure_ascii=False))
|
||||||
@@ -814,7 +820,7 @@ class Movistar(object):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
def get_seasons(self, id):
|
def get_seasons(self, id):
|
||||||
url = self.endpoints['ficha'].format(deviceType='webplayer', id=id, profile=self.account['platform'], mediatype='FOTOV', version='7.1', mode='GLOBAL', catalog='', channels='', state='', mdrm='true', demarcation=self.account['demarcation'], legacyBoxOffice='')
|
url = self.get_ficha_url(id)
|
||||||
#print(url)
|
#print(url)
|
||||||
data = self.net.load_data(url)
|
data = self.net.load_data(url)
|
||||||
#print_json(data)
|
#print_json(data)
|
||||||
@@ -840,7 +846,7 @@ class Movistar(object):
|
|||||||
return res
|
return res
|
||||||
|
|
||||||
def get_episodes(self, id):
|
def get_episodes(self, id):
|
||||||
url = self.endpoints['ficha'].format(deviceType='webplayer', id=str(id), profile=self.account['platform'], mediatype='FOTOV', version='7.1', mode='GLOBAL', catalog='', channels='', state='', mdrm='true', demarcation=self.account['demarcation'], legacyBoxOffice='')
|
url = self.get_ficha_url(id=str(id))
|
||||||
#print(url)
|
#print(url)
|
||||||
data = self.net.load_data(url)
|
data = self.net.load_data(url)
|
||||||
#print_json(data)
|
#print_json(data)
|
||||||
|
|||||||
Reference in new issue
Block a user