Skip to content

Commit

Permalink
Version 0.7.10
Browse files Browse the repository at this point in the history
  • Loading branch information
Paco8 committed May 23, 2023
1 parent 3a13c5d commit be52005
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion addon.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="plugin.video.movistarplus"
name="Movistar+"
version="0.7.9"
version="0.7.10"
provider-name="Paco8">
<requires>
<!--- <import addon="xbmc.python" version="2.25.0"/> -->
Expand Down
12 changes: 9 additions & 3 deletions resources/lib/movistar.py
Original file line number Diff line number Diff line change
Expand Up @@ -670,6 +670,12 @@ def get_favorite_data(self, links):
res[name] = d
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):
t = {}
t['info'] = {}
Expand Down Expand Up @@ -761,7 +767,7 @@ def add_video_extra_info(self, t):
if content:
data = json.loads(content)
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)
data = self.net.load_data(url)
self.cache.save_file(cache_filename, json.dumps(data, ensure_ascii=False))
Expand Down Expand Up @@ -814,7 +820,7 @@ def add_video_extra_info(self, t):
pass

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)
data = self.net.load_data(url)
#print_json(data)
Expand All @@ -840,7 +846,7 @@ def get_seasons(self, id):
return res

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)
data = self.net.load_data(url)
#print_json(data)
Expand Down

0 comments on commit be52005

Please sign in to comment.