Skip to content

Commit

Permalink
also get url from text in the downloader
Browse files Browse the repository at this point in the history
  • Loading branch information
kytpbs committed Aug 31, 2024
1 parent ac9c1a3 commit c984ea9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/downloading_system.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ def get_downloader(url: str) -> Type[VideoDownloader] | None:
if it still can't find a downloader, it returns None
"""

url = get_url_from_text(url)

if re.match(_TWITTER_REGEX, url):
return TwitterDownloader
if re.match(_INSTAGRAM_REGEX, url):
Expand Down

0 comments on commit c984ea9

Please sign in to comment.