]> Skullheadx's Git Forge - youtube-downloader.git/commitdiff
add fix for downloading youtu.be links
authorSkullheadx <94652084+Skullheadx@users.noreply.github.com>
Mon, 14 Oct 2024 03:07:02 +0000 (23:07 -0400)
committerSkullheadx <94652084+Skullheadx@users.noreply.github.com>
Mon, 14 Oct 2024 03:07:02 +0000 (23:07 -0400)
ytdl/__main__.py

index 6a653b1f4f15f03b539961390c8b9171be4b39b1..0a6919ee2a737ab8f63d551735c9a887c9403e4c 100644 (file)
@@ -14,7 +14,7 @@ def main():
         if arg in modes:
             mode = arg
 
-        if "youtube.com" in arg:
+        if "youtube" in arg or "youtu.be" in arg:
             links.extend(arg.split(" "))
 
     assert len(links) > 0, "Should pass at least one link as arg"