Tantifilm Rewrited, and other minor fix

This commit is contained in:
Alhaziel
2019-05-07 20:44:35 +02:00
parent 8de41084ea
commit b81d6e16c9
4 changed files with 165 additions and 440 deletions
+8 -3
View File
@@ -715,6 +715,7 @@ def check_list_links(itemlist, numero='', timeout=3):
if numero > 0 and it.server != '' and it.url != '':
verificacion = check_video_link(it.url, it.server, timeout)
it.title = verificacion + ' ' + it.title.strip()
logger.info('VERIFICATION= '+ verificacion)
it.alive = verificacion
numero -= 1
return itemlist
@@ -726,9 +727,13 @@ def check_video_link(url, server, timeout=3):
:return: str(2) '??':No se ha podido comprobar. 'Ok':Parece que el link funciona. 'NO':Parece que no funciona.
"""
NK = "[COLOR 0xFFF9B613][B]" + u'\u25cf' + "[/B][/COLOR]"
OK = "[COLOR 0xFF00C289][B]" + u'\u25cf' + "[/B][/COLOR]"
KO = "[COLOR 0xFFC20000][B]" + u'\u25cf' + "[/B][/COLOR]"
# NK = "[COLOR 0xFFF9B613][B]" + u"\u25cf" + "[/B][/COLOR]"
# OK = "[COLOR 0xFF00C289][B]" + u"\u25cf" + "[/B][/COLOR]"
# KO = "[COLOR 0xFFC20000][B]" + u"\u25cf" + "[/B][/COLOR]"
NK = "[COLOR 0xFFF9B613][B]O[/B][/COLOR]"
OK = "[COLOR 0xFF00C289][B]O[/B][/COLOR]"
KO = "[COLOR 0xFFC20000][B]O[/B][/COLOR]"
try:
server_module = __import__('servers.%s' % server, None, None, ["servers.%s" % server])