Update blacklist

This commit is contained in:
Serene-Arc
2021-05-25 19:33:32 +10:00
parent 87959028e5
commit fef2fc864b

View File

@@ -61,12 +61,15 @@ class DownloadFactory:
def is_web_resource(url: str) -> bool: def is_web_resource(url: str) -> bool:
web_extensions = ( web_extensions = (
'asp', 'asp',
'aspx',
'cfm', 'cfm',
'cfml', 'cfml',
'css', 'css',
'htm',
'html', 'html',
'js', 'js',
'php', 'php',
'php3',
'xhtml', 'xhtml',
) )
if re.match(rf'(?i).*/.*\.({"|".join(web_extensions)})$', url): if re.match(rf'(?i).*/.*\.({"|".join(web_extensions)})$', url):