mirror of
https://github.com/tubearchivist/tubearchivist-frontend.git
synced 2024-11-22 20:00:15 +00:00
fix youtu.be extractor, #40
This commit is contained in:
parent
58303047aa
commit
7930da5242
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user