Add shortened Youtube links to downloader factory

This commit is contained in:
Serene-Arc authored and Ali Parlakci committed 2021-04-18 16:44:06 +03:00
1 parent ae0269e13b
commit ba6cf42096
3 files changed
+3 -1

No files matched your search

@@ -38,7 +38,7 @@ class DownloadFactory:
return SelfPost
elif re.match(url_beginning + r'v\.redd\.it', url):
return VReddit
elif re.match(url_beginning + r'youtube', url):
elif re.match(url_beginning + r'youtu\.?be', url):
return Youtube
elif re.match(url_beginning + r'i\.redd\.it.*', url) or re.match(url_beginning + r'.*\..{3,4}$', url):
return Direct