Version 0.7.11
This commit is contained in:
1 parent
be52005519
commit
a7d3c5bca2
2 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.7.10"
|
version="0.7.11"
|
||||||
provider-name="Paco8">
|
provider-name="Paco8">
|
||||||
<requires>
|
<requires>
|
||||||
<!--- <import addon="xbmc.python" version="2.25.0"/> -->
|
<!--- <import addon="xbmc.python" version="2.25.0"/> -->
|
||||||
|
|||||||
@@ -451,6 +451,7 @@ class Movistar(object):
|
|||||||
found = False
|
found = False
|
||||||
c = 0
|
c = 0
|
||||||
programs = []
|
programs = []
|
||||||
|
if not id in epg: return programs
|
||||||
for p in epg[id]:
|
for p in epg[id]:
|
||||||
#print(p)
|
#print(p)
|
||||||
if (p['start'] <= timestamp) and (timestamp <= p['end']):
|
if (p['start'] <= timestamp) and (timestamp <= p['end']):
|
||||||
@@ -671,8 +672,10 @@ class Movistar(object):
|
|||||||
return res
|
return res
|
||||||
|
|
||||||
def get_ficha_url(self, id, mode='GLOBAL', catalog=''):
|
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 = 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=&', '')
|
#url = url.replace('state=&', '')
|
||||||
|
e = 'https://ottcache.dof6.com/movistarplus/webplayer/contents/{id}/details?profile={profile}&mediaType=FOTOV&version=8&mode={mode}&catalog={catalog}&mdrm=true&tlsstream=true&demarcation={demarcation}'
|
||||||
|
url = e.format(id=id, profile=self.account['platform'], mode=mode, catalog=catalog, demarcation=self.account['demarcation'])
|
||||||
#print(url)
|
#print(url)
|
||||||
return url
|
return url
|
||||||
|
|
||||||
@@ -934,6 +937,7 @@ class Movistar(object):
|
|||||||
def epg_to_movies(self, channel_id):
|
def epg_to_movies(self, channel_id):
|
||||||
epg = self.get_epg()
|
epg = self.get_epg()
|
||||||
res = []
|
res = []
|
||||||
|
if not channel_id in epg: return res
|
||||||
for p in epg[channel_id]:
|
for p in epg[channel_id]:
|
||||||
if sys.version_info[0] < 3:
|
if sys.version_info[0] < 3:
|
||||||
p['date_str'] = unicode(p['date_str'], 'utf-8')
|
p['date_str'] = unicode(p['date_str'], 'utf-8')
|
||||||
@@ -1043,7 +1047,7 @@ class Movistar(object):
|
|||||||
self.cache.save_file('auth.key', json.dumps(data, ensure_ascii=False))
|
self.cache.save_file('auth.key', json.dumps(data, ensure_ascii=False))
|
||||||
|
|
||||||
def delete_session_files(self):
|
def delete_session_files(self):
|
||||||
for f in ['access_token.conf', 'account.json', 'device_id.conf', 'devices.json', 'profile_id.conf', 'tokens.json']:
|
for f in ['access_token.conf', 'account.json', 'device_id.conf', 'devices.json', 'profile_id.conf', 'tokens.json', 'channels2.json', 'epg2.json']:
|
||||||
self.cache.remove_file(f)
|
self.cache.remove_file(f)
|
||||||
|
|
||||||
def get_profile_image_url(self, img_id):
|
def get_profile_image_url(self, img_id):
|
||||||
|
|||||||
Reference in new issue
Block a user