diff --git a/addon.xml b/addon.xml index 59cb3e5..60ad498 100644 --- a/addon.xml +++ b/addon.xml @@ -1,7 +1,7 @@ diff --git a/resources/lib/movistar.py b/resources/lib/movistar.py index 9cd6f88..774d125 100644 --- a/resources/lib/movistar.py +++ b/resources/lib/movistar.py @@ -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): diff --git a/resources/lib/plugin.py b/resources/lib/plugin.py index 0c7031c..5e38295 100644 --- a/resources/lib/plugin.py +++ b/resources/lib/plugin.py @@ -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() diff --git a/resources/settings.xml b/resources/settings.xml index f1d4ede..a37d975 100644 --- a/resources/settings.xml +++ b/resources/settings.xml @@ -8,14 +8,18 @@ + + +