restructured again

This commit is contained in:
2021-05-16 08:00:04 +05:30
parent a3e2fa3b5a
commit 7578463af7
30 changed files with 164 additions and 58 deletions

View File

@@ -1,7 +1,9 @@
#!/usr/bin/env bash
#!/usr/bin/env nix-shell
#! nix-shell -i bash -p ffmpeg youtube-dl
youtube-dl -f bestaudio -o "ytmp3.%(title)s.%(ext)s" "$1"
file=$(echo ytmp3.*.*)
newfile=$(echo $file | cut -c 7-)
mv "$file" "$newfile"
ffmpeg -i "$newfile" -c:a mp3 "${newfile%.*}.mp3"
rm "$newfile"
#trust me ive a reason for lossy->lossy transcoding