Version 0.5.14
This commit is contained in:
1 parent
0cf60f4e54
commit
dd176ff328
4 files changed
+15
-8
No files matched your search
@@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<addon id="plugin.video.movistarplus"
|
||||
name="Movistar+"
|
||||
version="0.5.12"
|
||||
version="0.5.14"
|
||||
provider-name="Paco8">
|
||||
<requires>
|
||||
<!--- <import addon="xbmc.python" version="2.25.0"/> -->
|
||||
|
||||
@@ -215,7 +215,7 @@ class Movistar(object):
|
||||
d = json.loads(content)
|
||||
except:
|
||||
d = None
|
||||
#LOG("**** open_session response: {}".format(d))
|
||||
#LOG("open_session: response: {}".format(d))
|
||||
return d
|
||||
|
||||
def login(self, username, password):
|
||||
|
||||
@@ -78,9 +78,7 @@ def play(params):
|
||||
d = m.delete_session()
|
||||
LOG('Delete session: d: {}'.format(d))
|
||||
|
||||
LOG("*** TEST token: {} session_token: {}".format(token, session_token))
|
||||
|
||||
#url = 'https://vamos-nmp-movistarplus.emisiondof6.com/hls/vamos.isml/index-02-spa.m3u8'
|
||||
LOG("token: {} session_token: {}".format(token, session_token))
|
||||
|
||||
if stype in ['u7d', 'rec']:
|
||||
d = m.get_u7d_url(url)
|
||||
@@ -94,7 +92,7 @@ def play(params):
|
||||
if addon.getSettingBool('manifest_modification') and proxy:
|
||||
url = '{}/?manifest={}'.format(proxy, url)
|
||||
|
||||
LOG("*** TEST url: {}".format(url))
|
||||
LOG("url: {}".format(url))
|
||||
|
||||
headers = 'Content-Type=application/octet-stream'
|
||||
headers += '&User-Agent=Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:88.0) Gecko/20100101 Firefox/88.0'
|
||||
@@ -196,7 +194,7 @@ def play(params):
|
||||
|
||||
|
||||
def add_videos(category, ctype, videos, ref=None, url_next=None, url_prev=None):
|
||||
#LOG("*** TEST category: {} ctype: {}".format(category, ctype))
|
||||
#LOG("category: {} ctype: {}".format(category, ctype))
|
||||
xbmcplugin.setPluginCategory(_handle, category)
|
||||
xbmcplugin.setContent(_handle, ctype)
|
||||
|
||||
@@ -217,7 +215,7 @@ def add_videos(category, ctype, videos, ref=None, url_next=None, url_prev=None):
|
||||
"""
|
||||
|
||||
for t in videos:
|
||||
#LOG("*** TEST t: {}".format(t))
|
||||
#LOG("t: {}".format(t))
|
||||
if 'subscribed' in t:
|
||||
if addon.getSettingBool('only_subscribed') and t['subscribed'] == False: continue
|
||||
t['info']['title'] = m.colorize_title(t)
|
||||
@@ -579,6 +577,11 @@ def run():
|
||||
m = Movistar(profile_dir, reuse_devices=reuse_devices)
|
||||
m.add_extra_info = addon.getSettingBool('add_extra_info')
|
||||
|
||||
profile_id = addon.getSetting('profile_id')
|
||||
LOG('profile_id: {}'.format(profile_id))
|
||||
if profile_id in ['OTT', 'NODTH']:
|
||||
m.account['platform'] = addon.getSetting('profile_id')
|
||||
|
||||
global player
|
||||
player = Player()
|
||||
|
||||
|
||||
@@ -8,14 +8,18 @@
|
||||
<setting label="30019" type="action" id="is_settings" action="Addon.OpenSettings(inputstream.adaptive)" enable="System.HasAddon(inputstream.adaptive)" option="close"/>
|
||||
<setting id="reuse_devices" type="bool" label="30023" default="false" visible="true"/>
|
||||
<setting id="open_session" type="bool" label="30022" default="true" visible="true"/>
|
||||
<setting type="sep"/>
|
||||
<setting id="profile_id" type="labelenum" label="Profile ID" values="Auto|OTT|NODTH"/>
|
||||
</category>
|
||||
<category label="30002">
|
||||
<setting label="30011" type="bool" id="manifest_modification" 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)"/>
|
||||
</category>
|
||||
<!--
|
||||
<category label="30003">
|
||||
<setting label="30010" type="labelenum" id="drm_type" values="Widevine|Playready"/>
|
||||
</category>
|
||||
-->
|
||||
</settings>
|
||||
|
||||
Reference in new issue
Block a user