[^>]+>[^>]+>[^>]+>]+>(?:(?P[^<]+))?<'
return locals()
diff --git a/channelselector.py b/channelselector.py
index 5c57098e..9f810eff 100644
--- a/channelselector.py
+++ b/channelselector.py
@@ -2,18 +2,18 @@
import glob, os
-from core import channeltools
from core.item import Item
from platformcode import config, logger
addon = config.__settings__
downloadenabled = addon.getSetting('downloadenabled')
+
def getmainlist(view="thumb_"):
logger.info()
itemlist = list()
if config.dev_mode():
- itemlist.append(Item(title="Redirect", channel="checkhost", action="check_channels", thumbnail='',
+ itemlist.append(Item(title="Redirect", action="check_channels", thumbnail='',
category=config.get_localized_string(30119), viewmode="thumbnails"))
# Main Menu Channels
if addon.getSetting('enable_news_menu') == "true":
diff --git a/platformcode/config.py b/platformcode/config.py
index 3d160bb7..2a69dab0 100644
--- a/platformcode/config.py
+++ b/platformcode/config.py
@@ -76,7 +76,7 @@ def get_platform(full_version=False):
code_db = {'10': 'MyVideos37.db', '11': 'MyVideos60.db', '12': 'MyVideos75.db',
'13': 'MyVideos78.db', '14': 'MyVideos90.db', '15': 'MyVideos93.db',
'16': 'MyVideos99.db', '17': 'MyVideos107.db', '18': 'MyVideos116.db',
- '19': 'MyVideos116.db'}
+ '19': 'MyVideos119.db'}
num_version = xbmc.getInfoLabel('System.BuildVersion')
num_version = re.match("\d+\.\d+", num_version).group(0)
diff --git a/platformcode/launcher.py b/platformcode/launcher.py
index b670d33e..8bfcc231 100644
--- a/platformcode/launcher.py
+++ b/platformcode/launcher.py
@@ -157,6 +157,9 @@ def run(item=None):
short = urllib.urlopen('https://u.nu/api.php?action=shorturl&format=simple&url=' + item.url).read().decode('utf-8')
platformtools.dialog_ok(config.get_localized_string(20000), config.get_localized_string(70740) % short)
# Action in certain channel specified in "action" and "channel" parameters
+ elif item.action == "check_channels":
+ from platformcode import checkhost
+ checkhost.check_channels()
else:
# Checks if channel exists
if os.path.isfile(os.path.join(config.get_runtime_path(), 'channels', item.channel + ".py")):
diff --git a/platformcode/xbmc_videolibrary.py b/platformcode/xbmc_videolibrary.py
index 60518125..a0b729c3 100644
--- a/platformcode/xbmc_videolibrary.py
+++ b/platformcode/xbmc_videolibrary.py
@@ -2,8 +2,8 @@
# ------------------------------------------------------------
# XBMC Library Tools
# ------------------------------------------------------------
-from future import standard_library
-standard_library.install_aliases()
+# from future import standard_library
+# standard_library.install_aliases()
#from builtins import str
import sys, os, threading, time, re, math, xbmc, xbmcgui
PY3 = False