Update blacklist
This commit is contained in:
1 parent
87959028e5
commit
fef2fc864b
1 file changed
+3
@@ -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