diff options
author | Pawky Languish | 2024-11-27 23:42:45 +0000 |
---|---|---|
committer | Pawky Languish | 2024-11-27 23:42:45 +0000 |
commit | 02696d69134a2345e17f8182c57837d42bffedb6 (patch) | |
tree | 6971631fe41b5e5afc5d1ee46efb98236a6e347a /youtube.py | |
parent | 82b4772f1c0bbb9772c51598625958eef3676b4f (diff) |
reformat (and add bandcamp)
Diffstat (limited to 'youtube.py')
-rwxr-xr-x | youtube.py | 16 |
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": |