Created
December 23, 2023 14:16
-
-
Save pr4wn/b3d7a9a02d17525ad8e4508a9c3ad20f to your computer and use it in GitHub Desktop.
A script to recursively split mp3 backup files into chapters using cue file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/fish | |
for x in (find -type f -name "*.cue") | |
set fn (basename --suffix=".cue" $x) | |
set dir (dirname $x) | |
mp3splt -c "$dir/$fn.cue" "$dir/$fn.mp3" -n -o "@n_@f_@t" && rm "$dir/$fn.cue" "$dir/$fn.mp3" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment