8 lines
216 B
Bash
Executable File
8 lines
216 B
Bash
Executable File
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"
|