Tweak regex to fix incorrect match (#237)
This commit is contained in:
1 parent
5d86c2d400
commit
44889d5264
2 files changed
+5
-1
No files matched your search
@@ -44,7 +44,7 @@ class DownloadFactory:
|
||||
return Youtube
|
||||
elif re.match(url_beginning + r'i\.redd\.it.*', url):
|
||||
return Direct
|
||||
elif re.match(url_beginning + r'.*\..{3,4}$', url):
|
||||
elif re.match(url_beginning + r'.*/.*\.\w{3,4}$', url):
|
||||
return Direct
|
||||
else:
|
||||
raise NotADownloadableLinkError('No downloader module exists for url {}'.format(url))
|
||||
Reference in new issue
Block a user