diff --git a/bdfr/site_downloaders/download_factory.py b/bdfr/site_downloaders/download_factory.py index 974e817..ae7264c 100644 --- a/bdfr/site_downloaders/download_factory.py +++ b/bdfr/site_downloaders/download_factory.py @@ -16,6 +16,7 @@ from bdfr.site_downloaders.redgifs import Redgifs from bdfr.site_downloaders.self_post import SelfPost from bdfr.site_downloaders.vreddit import VReddit from bdfr.site_downloaders.youtube import Youtube +from bdfr.site_downloaders.streamable import Streamable class DownloadFactory: @@ -42,10 +43,13 @@ class DownloadFactory: return VReddit elif re.match(r'(m\.)?youtu\.?be', sanitised_url): return Youtube + elif re.match(r'streamable\.com', sanitised_url): + return Streamable elif re.match(r'i\.redd\.it.*', sanitised_url): return Direct else: - raise NotADownloadableLinkError(f'No downloader module exists for url {url}') + raise NotADownloadableLinkError( + f'No downloader module exists for url {url}') @staticmethod def _sanitise_url(url: str) -> str: