Update blacklist
This commit is contained in:
@@ -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):
|
||||||
|
|||||||
Reference in New Issue
Block a user