JohnBennson on Nostr: This bash script will quickly download YouTube videos to your Desktop. First, copy ...
This bash script will quickly download YouTube videos to your Desktop. First, copy the YouTube URL to your clipboard, then...
#!/bin/sh
clipurl=`xclip -o`
yt-dlp -o "/home/john/Desktop/%(title)s.%(ext)s" $clipurl
This bash script will quickly convert YouTube videos to .mp3 audio files so you can throw them on your phone.
#!/bin/sh
clipurl=`xclip -o`
yt-dlp -x --audio-format "mp3" -o "/home/john/Desktop/%(title)s.%(ext)s" $clipurl
Published at
2024-04-07 16:42:26Event JSON
{
"id": "bc38e1feae645586b0d6edfc1cc0954f55229ec65224446e7f8207652b6e34f4",
"pubkey": "4eef5f66e4988b111cfce845d48d023d682d58bd1dc41304da19c011d63e5bed",
"created_at": 1712508146,
"kind": 1,
"tags": [],
"content": "This bash script will quickly download YouTube videos to your Desktop. First, copy the YouTube URL to your clipboard, then...\n\n#!/bin/sh\nclipurl=`xclip -o`\nyt-dlp -o \"/home/john/Desktop/%(title)s.%(ext)s\" $clipurl\n\nThis bash script will quickly convert YouTube videos to .mp3 audio files so you can throw them on your phone.\n\n#!/bin/sh\nclipurl=`xclip -o`\nyt-dlp -x --audio-format \"mp3\" -o \"/home/john/Desktop/%(title)s.%(ext)s\" $clipurl",
"sig": "f7df65efa5a6e6bbef00b1185f4e908f94db1b69cbdfeb5f44764a5dfa352f2ef5abfbdf7a1648232e808a39eb4c3dd4558ddb20ea4d27b9609742e16c826ea1"
}