Add support for v.reddit links.

This commit is contained in:
BlipRanger
2022-04-25 12:09:09 -04:00
parent 4917fae797
commit dbd0c6cd42
2 changed files with 80 additions and 0 deletions

View File

@@ -18,6 +18,7 @@ from bdfr.site_downloaders.redgifs import Redgifs
from bdfr.site_downloaders.self_post import SelfPost
from bdfr.site_downloaders.vidble import Vidble
from bdfr.site_downloaders.youtube import Youtube
from bdfr.site_downloaders.vreddit import vreddit
class DownloadFactory:
@@ -47,6 +48,8 @@ class DownloadFactory:
return Youtube
elif re.match(r'i\.redd\.it.*', sanitised_url):
return Direct
elif re.match(r'v\.redd\.it.*', sanitised_url):
return vreddit
elif re.match(r'pornhub\.com.*', sanitised_url):
return PornHub
elif re.match(r'vidble\.com', sanitised_url):