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

View File

@ -70,7 +70,7 @@ class UrlListParser:
# is not a url # is not a url
id_type = self.find_valid_id(url) id_type = self.find_valid_id(url)
youtube_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") raise ValueError(f"{url} is not a youtube link")
elif parsed.path: elif parsed.path:
# is a url # is a url