summary refs log tree commit diff
path: root/youtube.py
diff options
context:
space:
mode:
authorPawky Languish2024-11-27 23:42:45 +0000
committerPawky Languish2024-11-27 23:42:45 +0000
commit02696d69134a2345e17f8182c57837d42bffedb6 (patch)
tree6971631fe41b5e5afc5d1ee46efb98236a6e347a /youtube.py
parent82b4772f1c0bbb9772c51598625958eef3676b4f (diff)
reformat (and add bandcamp)
Diffstat (limited to 'youtube.py')
-rwxr-xr-xyoutube.py16
1 files changed, 9 insertions, 7 deletions
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":