Version 0.9.7
This commit is contained in:
1 parent
244f0728e9
commit
08209c8955
5 files changed
+31
-11
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.9.6"
|
version="0.9.7"
|
||||||
provider-name="Paco8">
|
provider-name="Paco8">
|
||||||
<requires>
|
<requires>
|
||||||
<!--- <import addon="xbmc.python" version="2.25.0"/> -->
|
<!--- <import addon="xbmc.python" version="2.25.0"/> -->
|
||||||
|
|||||||
@@ -37,6 +37,10 @@ msgctxt "#30005"
|
|||||||
msgid "Playback"
|
msgid "Playback"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
msgctxt "#30006"
|
||||||
|
msgid "Advanced"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
# For Orange and Movistar only
|
# For Orange and Movistar only
|
||||||
msgctxt "#30010"
|
msgctxt "#30010"
|
||||||
msgid "DRM type"
|
msgid "DRM type"
|
||||||
@@ -135,7 +139,6 @@ msgctxt "#30033"
|
|||||||
msgid "Enable 4K"
|
msgid "Enable 4K"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
# For SkyOTT only
|
|
||||||
msgctxt "#30034"
|
msgctxt "#30034"
|
||||||
msgid "Fix audio and subtitle language names"
|
msgid "Fix audio and subtitle language names"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@@ -175,11 +178,14 @@ msgctxt "#30041"
|
|||||||
msgid "Subscription country (two letter code):"
|
msgid "Subscription country (two letter code):"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
# For SkyOTT only
|
|
||||||
msgctxt "#30050"
|
msgctxt "#30050"
|
||||||
msgid "Remember username and password"
|
msgid "Remember username and password"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
msgctxt "#30051"
|
||||||
|
msgid "Process subtitles"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
msgctxt "#30101"
|
msgctxt "#30101"
|
||||||
msgid "Menu"
|
msgid "Menu"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|||||||
@@ -37,6 +37,10 @@ msgctxt "#30005"
|
|||||||
msgid "Playback"
|
msgid "Playback"
|
||||||
msgstr "Reproducción"
|
msgstr "Reproducción"
|
||||||
|
|
||||||
|
msgctxt "#30006"
|
||||||
|
msgid "Advanced"
|
||||||
|
msgstr "Avanzado"
|
||||||
|
|
||||||
msgctxt "#30010"
|
msgctxt "#30010"
|
||||||
msgid "DRM type"
|
msgid "DRM type"
|
||||||
msgstr "Tipo de DRM"
|
msgstr "Tipo de DRM"
|
||||||
@@ -158,11 +162,14 @@ msgctxt "#30041"
|
|||||||
msgid "Subscription country (two letter code):"
|
msgid "Subscription country (two letter code):"
|
||||||
msgstr "País de la suscripción (código de dos letras):"
|
msgstr "País de la suscripción (código de dos letras):"
|
||||||
|
|
||||||
# For SkyOTT only
|
|
||||||
msgctxt "#30050"
|
msgctxt "#30050"
|
||||||
msgid "Remember username and password"
|
msgid "Remember username and password"
|
||||||
msgstr "Recordar usuario y clave"
|
msgstr "Recordar usuario y clave"
|
||||||
|
|
||||||
|
msgctxt "#30051"
|
||||||
|
msgid "Process subtitles"
|
||||||
|
msgstr "Procesar subtítulos"
|
||||||
|
|
||||||
msgctxt "#30101"
|
msgctxt "#30101"
|
||||||
msgid "Menu"
|
msgid "Menu"
|
||||||
msgstr "Menú"
|
msgstr "Menú"
|
||||||
|
|||||||
@@ -39,11 +39,10 @@ import requests
|
|||||||
import threading
|
import threading
|
||||||
import socket
|
import socket
|
||||||
from contextlib import closing
|
from contextlib import closing
|
||||||
import xbmcaddon
|
|
||||||
|
|
||||||
from .b64 import encode_base64
|
from .b64 import encode_base64
|
||||||
from .log import LOG
|
from .log import LOG
|
||||||
from .addon import profile_dir
|
from .addon import profile_dir, addon
|
||||||
from .useragent import useragent
|
from .useragent import useragent
|
||||||
|
|
||||||
from ttml2ssa import Ttml2SsaAddon
|
from ttml2ssa import Ttml2SsaAddon
|
||||||
@@ -72,7 +71,7 @@ def mvs():
|
|||||||
global mvs_o
|
global mvs_o
|
||||||
if not mvs_o:
|
if not mvs_o:
|
||||||
from .movistar import Movistar
|
from .movistar import Movistar
|
||||||
reuse_devices = xbmcaddon.Addon().getSettingBool('reuse_devices')
|
reuse_devices = addon.getSettingBool('reuse_devices')
|
||||||
mvs_o = Movistar(profile_dir, reuse_devices)
|
mvs_o = Movistar(profile_dir, reuse_devices)
|
||||||
return mvs_o
|
return mvs_o
|
||||||
|
|
||||||
@@ -99,17 +98,19 @@ class RequestHandler(BaseHTTPRequestHandler):
|
|||||||
baseurl = os.path.dirname(response.url)
|
baseurl = os.path.dirname(response.url)
|
||||||
LOG('baseurl: {}'.format(baseurl))
|
LOG('baseurl: {}'.format(baseurl))
|
||||||
content = response.content.decode('utf-8')
|
content = response.content.decode('utf-8')
|
||||||
if not xbmcaddon.Addon().getSettingBool('use_ttml2ssa'):
|
|
||||||
|
if addon.getSettingBool('proxy_process_subs'):
|
||||||
LOG(self.headers.get('Host'))
|
LOG(self.headers.get('Host'))
|
||||||
my_address = 'http://' + self.headers.get('Host')
|
my_address = 'http://' + self.headers.get('Host')
|
||||||
LOG('my_address: {}'.format(my_address))
|
LOG('my_address: {}'.format(my_address))
|
||||||
content = content.replace('mimeType="application/ttml+xml"', 'mimeType="text/vtt"')
|
content = content.replace('mimeType="application/ttml+xml"', 'mimeType="text/vtt"')
|
||||||
content = re.sub(r'<BaseURL>(.*?)\.ttml<\/BaseURL>', r'<BaseURL>{}/?subtitle={}/\1.ttml</BaseURL>'.format(my_address, baseurl), content)
|
content = re.sub(r'<BaseURL>(.*?)\.ttml<\/BaseURL>', r'<BaseURL>{}/?subtitle={}/\1.ttml</BaseURL>'.format(my_address, baseurl), content)
|
||||||
|
|
||||||
pos = content.find('<Period id')
|
pos = content.find('<Period id')
|
||||||
if pos > -1:
|
if pos > -1:
|
||||||
content = content[:pos] + '<BaseURL>' + baseurl + '/</BaseURL>' + content[pos:]
|
content = content[:pos] + '<BaseURL>' + baseurl + '/</BaseURL>' + content[pos:]
|
||||||
|
|
||||||
if xbmcaddon.Addon().getSettingBool('fix_languages'):
|
if addon.getSettingBool('fix_languages'):
|
||||||
replacements = {'qaa': 'eng', 'srd': 'es-[CC]', 'ads': 'es-[ADS]'}
|
replacements = {'qaa': 'eng', 'srd': 'es-[CC]', 'ads': 'es-[ADS]'}
|
||||||
for key, value in replacements.items():
|
for key, value in replacements.items():
|
||||||
content = content.replace('lang="{}"'.format(key), 'lang="{}"'.format(value))
|
content = content.replace('lang="{}"'.format(key), 'lang="{}"'.format(value))
|
||||||
@@ -179,7 +180,7 @@ class RequestHandler(BaseHTTPRequestHandler):
|
|||||||
# Discard previous mvs_o, it may have expired tokens
|
# Discard previous mvs_o, it may have expired tokens
|
||||||
global mvs_o
|
global mvs_o
|
||||||
mvs_o = None
|
mvs_o = None
|
||||||
if reregister_needed and xbmcaddon.Addon().getSettingBool('reregister'):
|
if reregister_needed and addon.getSettingBool('reregister'):
|
||||||
mvs().unregister_device()
|
mvs().unregister_device()
|
||||||
mvs().register_device()
|
mvs().register_device()
|
||||||
|
|
||||||
@@ -214,7 +215,7 @@ class RequestHandler(BaseHTTPRequestHandler):
|
|||||||
d = try_load_json(license_data)
|
d = try_load_json(license_data)
|
||||||
if d and 'errorCode' in d:
|
if d and 'errorCode' in d:
|
||||||
if d['errorCode'] == 4027:
|
if d['errorCode'] == 4027:
|
||||||
if not reregister_needed and xbmcaddon.Addon().getSettingBool('reregister'):
|
if not reregister_needed and addon.getSettingBool('reregister'):
|
||||||
reregister_needed = True
|
reregister_needed = True
|
||||||
continue
|
continue
|
||||||
from .gui import show_notification
|
from .gui import show_notification
|
||||||
|
|||||||
@@ -19,6 +19,7 @@
|
|||||||
<category label="30002">
|
<category label="30002">
|
||||||
<setting label="30011" type="bool" id="manifest_modification" default="true"/>
|
<setting label="30011" type="bool" id="manifest_modification" default="true"/>
|
||||||
<setting label="30034" type="bool" id="fix_languages" default="true" enable="eq(-1,true)" subsetting="true"/>
|
<setting label="30034" type="bool" id="fix_languages" default="true" enable="eq(-1,true)" subsetting="true"/>
|
||||||
|
<setting label="30051" type="bool" id="proxy_process_subs" default="true" enable="eq(-2,true)" subsetting="true"/>
|
||||||
<setting label="30012" type="bool" id="use_proxy_for_license" default="true"/>
|
<setting label="30012" type="bool" id="use_proxy_for_license" default="true"/>
|
||||||
<setting id="reregister" type="bool" label="30024" default="true" enable="eq(-1,true)" visible="false" subsetting="true"/>
|
<setting id="reregister" type="bool" label="30024" default="true" enable="eq(-1,true)" visible="false" subsetting="true"/>
|
||||||
</category>
|
</category>
|
||||||
@@ -37,6 +38,11 @@
|
|||||||
<setting id="iptv.epg_uri" default="plugin://plugin.video.movistarplus/iptv/epg" visible="false"/>
|
<setting id="iptv.epg_uri" default="plugin://plugin.video.movistarplus/iptv/epg" visible="false"/>
|
||||||
</category>
|
</category>
|
||||||
-->
|
-->
|
||||||
|
|
||||||
|
<category label="30006">
|
||||||
|
<setting id="reuse_devices" type="bool" label="30023" default="false" visible="true"/>
|
||||||
|
</category>
|
||||||
|
|
||||||
<category label="30304">
|
<category label="30304">
|
||||||
<setting label="30316" type="action" id="create_iptv_settings" action="RunPlugin(plugin://plugin.video.movistarplus/?action=create_iptv_settings)" option="close"/>
|
<setting label="30316" type="action" id="create_iptv_settings" action="RunPlugin(plugin://plugin.video.movistarplus/?action=create_iptv_settings)" option="close"/>
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user