1
0
Fork 0
mirror of synced 2024-06-22 04:00:20 +12:00

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:
web_extensions = (
'asp',
'aspx',
'cfm',
'cfml',
'css',
'htm',
'html',
'js',
'php',
'php3',
'xhtml',
)
if re.match(rf'(?i).*/.*\.({"|".join(web_extensions)})$', url):