From 7930da52423f43b8ba26ac7eedeb50be6f9114a4 Mon Sep 17 00:00:00 2001 From: simon Date: Fri, 12 Nov 2021 19:26:47 +0700 Subject: [PATCH] fix youtu.be extractor, #40 --- tubearchivist/home/src/helper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tubearchivist/home/src/helper.py b/tubearchivist/home/src/helper.py index 7a51388..138b9e4 100644 --- a/tubearchivist/home/src/helper.py +++ b/tubearchivist/home/src/helper.py @@ -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