1
0
Fork 0
mirror of https://github.com/Phantop/dotfiles synced 2024-11-27 00:53:17 +00:00
dotfiles/dot-local/bin/hitolo

22 lines
619 B
Plaintext
Raw Normal View History

#!/usr/bin/fish
set HIFI ~/Music/HiFi
2021-03-27 22:37:14 +00:00
set LOFI /tmp/vox/LoFi
test $argv && set LOFI $argv
2021-01-10 03:46:08 +00:00
test -f /usr/share/man/man3/Parallel::ForkManager.3 || sudo eopkg it perl-parallel-forkmanager
2021-03-27 22:37:14 +00:00
mkdir /tmp/vox
2021-10-08 19:24:27 +00:00
fusermount -u /tmp/vox
2021-03-27 22:37:14 +00:00
ifuse --documents com.coppertino.VoxMobile /tmp/vox
if not test -d $LOFI
cd $HIFI
fd -t d -x mkdir -p $LOFI/{}
fd -e flac -x opusenc --bitrate 72 {} $LOFI/{.}.opus
end
2021-01-10 03:46:08 +00:00
set args -s $HIFI -d $LOFI -o opus -q 72 --clean sync -F 8 -a mp3,m4a,opus
2021-03-27 22:37:14 +00:00
acxi $args || wget https://github.com/smxi/acxi/raw/stable/acxi -O- -o/dev/null | perl -- - $args
fusermount -u /tmp/vox
rmdir /tmp/vox