diff --git a/channelselector.py b/channelselector.py index e79b3e0b..d7d0c4bd 100644 --- a/channelselector.py +++ b/channelselector.py @@ -318,12 +318,16 @@ def set_channel_info(parameters): def auto_filter(auto_lang=False): + list_lang = ['ita', 'vos', 'sub-ita'] if config.get_setting("channel_language") == 'auto' or auto_lang == True: lang = config.get_localized_string(20001) else: lang = config.get_setting("channel_language", default="all") + if lang not in list_lang: + lang = 'all' + return lang # import xbmc, xbmcaddon diff --git a/servers/wstream.json b/servers/wstream.json index 97e73570..d1b8645b 100644 --- a/servers/wstream.json +++ b/servers/wstream.json @@ -7,27 +7,11 @@ "find_videos": { "patterns": [ { - "pattern": "https://wstream.video/stream/switch_embed.php\\?file_code=([a-z0-9A-Z]+)", - "url": "https://wstream.video/video.php?file_code=\\1" - }, - { - "pattern":"wstream.video\/api\/vcmod\/fastredirect\/streaming.php\\?id=([0-9a-zA-Z]+)", - "url": "https://wstream.video/api/vcmod/fastredirect/streaming.php?id=\\1" - }, - { - "pattern": "wstream\\.video/video\\.php\\?file_code=([a-z0-9A-Z]+)", - "url": "https://wstream.video/video.php?file_code=\\1" - }, - { - "pattern": "wstream\\.video\/(?:embed-|videos/|video/|videow/|videoj/)([a-z0-9A-Z]+)", - "url": "https://wstream.video/video.php?file_code=\\1" - }, - { - "pattern": "wstream\\.video/(?!api/|stream/|embed-)([a-z0-9A-Z]+)", + "pattern": "wstream\\.video.*?(? 0: t = float(100) / len(pendent) while len(pendent) > 0: index = (len(threads) - len(pendent)) + 1 percentage = int(math.ceil(index * t)) - list_pendent_names = ['test' for a in pendent] + list_pendent_names = [a.getName() for a in pendent] mensaje = config.get_localized_string(70282) % (", ".join(list_pendent_names)) progreso.update(percentage, config.get_localized_string(60521) % (len(threads) - len(pendent) + 1, len(threads)), mensaje) time.sleep(0.5) - if multi == 'threads': - pendent = [a for a in threads if a.isAlive()] - else: - pendent = [a for a in threads if a.is_alive()] + pendent = [a for a in threads if a.isAlive()] progreso.close() with open(os.path.join(res_dir, 'done'), 'w') as f: f.write('1')