server blacklist nei test, migliorato unshortenit (con fix uprotector)

This commit is contained in:
mac12m99
2021-01-22 18:14:49 +01:00
parent fd0e476cda
commit 7998362b0b
2 changed files with 34 additions and 27 deletions

View File

@@ -62,7 +62,7 @@ validUrlRegex = re.compile(
r'(?:/?|[/?]\S+)$', re.IGNORECASE)
chBlackList = ['url', 'mediasetplay']
srvBalcklist = ['mega', 'hdmario', 'torrent', 'youtube']
srvBlacklist = ['mega', 'hdmario', 'torrent', 'youtube']
chNumRis = {
'altadefinizione01': {
'Film': 20
@@ -222,7 +222,7 @@ print(channels)
serverNames = []
serversFinal = []
for s in servers:
if not s['name'] in serverNames:
if s['name'] not in serverNames and s['name'] not in srvBlacklist:
serverNames.append(s['name'])
serversFinal.append(s)