Add shortened Youtube links to downloader factory

This commit is contained in:
Serene-Arc
2021-03-12 13:29:12 +10:00
committed by Ali Parlakci
parent ae0269e13b
commit ba6cf42096
3 changed files with 3 additions and 1 deletions

View File

@@ -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