This commit is contained in:
simio 2025-01-14 04:57:34 -03:00
parent d1d7dd3126
commit 55f4092e35
2 changed files with 12 additions and 3 deletions

View File

@ -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"

View 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"