Version 0.7.3

This commit is contained in:
Paco8 committed 2023-04-06 16:26:14 +02:00
1 parent 50f4975e3f
commit e7e58895bc
5 files changed
+119 -8

No files matched your search

+4 -2
View File
@@ -811,8 +811,10 @@ class Movistar(object):
t['art']['poster'] = data['Imagen']
for im in ed['Imagenes']:
if im['id'] == 'horizontal': t['art']['thumb'] = im['uri']
m = re.search(r'T(\d+)', ed['Temporada'])
if m: t['info']['season'] = m.group(1)
t['info']['season'] = '0'
if ed.get('Temporada'):
m = re.search(r'T(\d+)', ed['Temporada'])
if m: t['info']['season'] = m.group(1)
t['url'] = ''
t['session_request'] = ''
if len(d['VodItems']) > 0:
+3 -2
View File
@@ -103,6 +103,7 @@ class RequestHandler(BaseHTTPRequestHandler):
if pos > -1:
content = content[:pos] + '<BaseURL>' + baseurl + '/</BaseURL>' + content[pos:]
content = content.replace('lang="qaa"', 'lang="eng"')
content = content.replace('lang="srd"', 'lang="es-[CC]"')
#LOG('content: {}'.format(content))
manifest_data = content
self.send_response(200)
@@ -192,12 +193,12 @@ class RequestHandler(BaseHTTPRequestHandler):
LOG('license response: {}'.format(license_data))
d = try_load_json(license_data)
if d and 'errorCode' in d:
from .gui import show_notification
show_notification('Error {}: {}'.format(d['errorCode'], d['message']))
if d['errorCode'] == 4027:
if not reregister_needed and xbmcaddon.Addon().getSettingBool('reregister'):
reregister_needed = True
continue
from .gui import show_notification
show_notification('Error {}: {}'.format(d['errorCode'], d['message']))
else:
LOG('license response: {}'.format(encode_base64(license_data)))
break