fix youtu.be extractor, #40

This commit is contained in:
simon 2021-11-12 19:26:47 +07:00
parent 58303047aa
commit 7930da5242
No known key found for this signature in database
GPG Key ID: 2C15AA5E89985DD4
1 changed files with 1 additions and 1 deletions

View File

@ -70,7 +70,7 @@ class UrlListParser:
# is not a url
id_type = self.find_valid_id(url)
youtube_id = url
elif "youtube.com" not in url:
elif "youtube.com" not in url and "youtu.be" not in url:
raise ValueError(f"{url} is not a youtube link")
elif parsed.path:
# is a url