summary refs log tree commit diff
path: root/youtube.py
diff options
context:
space:
mode:
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":