script
This commit is contained in:
parent
d1d7dd3126
commit
55f4092e35
@ -1,5 +1,7 @@
|
||||
mkdir ~/.tmp
|
||||
cd ~/.tmp
|
||||
FILENAME="$(yt-dlp --extract-audio --audio-format mp3 --print filename "$1")"
|
||||
catboxupload "$FILENAME"
|
||||
rm "$FILENAME"
|
||||
clipboard=$(xclip -o)
|
||||
output=$(yt-dlp --extract-audio --audio-format mp3 "$clipboard")
|
||||
filename=$(echo "$output" | grep -oP '(?<=Destination: ).+\.mp3')
|
||||
catboxupload "$filename"
|
||||
rm "$filename"
|
||||
|
7
.scripts/ytdl_yt_link_upload_to_catbox_and_copy_to_clipboard.sh
Executable file
7
.scripts/ytdl_yt_link_upload_to_catbox_and_copy_to_clipboard.sh
Executable file
@ -0,0 +1,7 @@
|
||||
mkdir ~/.tmp
|
||||
cd ~/.tmp
|
||||
clipboard=$(xclip -o)
|
||||
output=$(yt-dlp --extract-audio --audio-format mp3 "$clipboard")
|
||||
filename=$(echo "$output" | grep -oP '(?<=Destination: ).+\.mp3')
|
||||
catboxupload "$filename"
|
||||
rm "$filename"
|
Loading…
Reference in New Issue
Block a user