KodiMov+ 1.0.0+kodimov.1: fork of Movistar+ 1.0.0
- New id plugin.video.kodimovplus, name KodiMov+, proxy port 57031 - Takes over the login of plugin.video.movistarplus on first run - Password-less login from the Movistar home network (autologin token traded for a classic token via the new servers' initData) - Hides the channels that can't play (LALIGA, Liga de Campeones) - Adds TVG2 and TeleVigo to the TV guide list - Re-exports the TV guide channel list every 6 hours Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
ccc17b4e5c
commit
066a203e9e
35 files changed
+412
-30
No files matched your search
+9
-1
@@ -4,6 +4,7 @@
|
||||
from __future__ import unicode_literals
|
||||
|
||||
import os
|
||||
import time
|
||||
import xbmc
|
||||
import xbmcgui
|
||||
from resources.lib.proxy import Proxy
|
||||
@@ -29,7 +30,7 @@ def export_epg():
|
||||
LOG('channels_needs_update: {} epg_needs_update: {}'.format(channels_needs_update, epg_needs_update))
|
||||
|
||||
if channels_needs_update or epg_needs_update:
|
||||
xbmc.executebuiltin('RunPlugin(plugin://plugin.video.movistarplus/?action=export_epg_now)')
|
||||
xbmc.executebuiltin('RunPlugin(plugin://plugin.video.kodimovplus/?action=export_epg_now)')
|
||||
|
||||
if __name__ == '__main__':
|
||||
LOG('Service started')
|
||||
@@ -43,9 +44,16 @@ if __name__ == '__main__':
|
||||
except:
|
||||
pass
|
||||
|
||||
# Refreshes the TV guide channel list (new channels, new numbers) every
|
||||
# 6 hours. Opening the add-on also renews the 10-day Movistar login.
|
||||
next_export = time.time() + 60
|
||||
monitor = xbmc.Monitor()
|
||||
while not monitor.abortRequested():
|
||||
if monitor.waitForAbort(1):
|
||||
break
|
||||
if time.time() >= next_export:
|
||||
next_export = time.time() + 6 * 3600
|
||||
if addon.getSettingBool('export_channels') and not addon.getSettingBool('export_epg'):
|
||||
xbmc.executebuiltin('RunPlugin(plugin://plugin.video.kodimovplus/?action=export_channels_now)')
|
||||
|
||||
proxy.stop()
|
||||
Reference in new issue
Block a user