This commit is contained in:
marco
2020-07-06 13:42:39 +02:00
parent 1195c51991
commit d5f09d03ce
3 changed files with 26 additions and 30 deletions

View File

@@ -110,7 +110,7 @@ def get_channel_url(findhostMethod=None, name=None):
name = os.path.basename(frame[0].f_code.co_filename).replace('.py', '')
if findhostMethod:
url = jsontools.get_node_from_file(name, 'url')
if not url:
if not url or 'web.archive.org' in url: # per eliminare tutti i webarchive salvati causa bug httptools CF, eliminare in futuro
url = findhostMethod()
jsontools.update_node(url, name, 'url')
return url