From 02696d69134a2345e17f8182c57837d42bffedb6 Mon Sep 17 00:00:00 2001 From: Pawky Languish Date: Wed, 27 Nov 2024 23:42:45 +0000 Subject: reformat (and add bandcamp) --- youtube.py | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'youtube.py') diff --git a/youtube.py b/youtube.py index 475a36d..41dd18b 100755 --- a/youtube.py +++ b/youtube.py @@ -114,13 +114,15 @@ class YouTube: self.video_type = ( "clip" if self.is_clip(url) - else "shorts" - if self.is_ytshorts(url) - else "music" - if self.is_ytmusic(url) - else "embed" - if self.is_embed(url) - else "video" + else ( + "shorts" + if self.is_ytshorts(url) + else ( + "music" + if self.is_ytmusic(url) + else "embed" if self.is_embed(url) else "video" + ) + ) ) video_type = self.video_type if video_type == "embed": -- cgit 1.4.1-2-gfad0