From 889f698e3e3c548c35000ae292fcb918900cfd4b Mon Sep 17 00:00:00 2001 From: Phantop Date: Sat, 27 Mar 2021 18:37:14 -0400 Subject: [PATCH] hitolo: directly sync to iPhone --- .local/bin/hitolo | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.local/bin/hitolo b/.local/bin/hitolo index 8e5d4a2..82756c2 100755 --- a/.local/bin/hitolo +++ b/.local/bin/hitolo @@ -1,8 +1,12 @@ #!/usr/bin/fish set HIFI ~/Music/HiFi -set LOFI ~/Music/LoFi +set LOFI /tmp/vox/LoFi +test $argv && set LOFI $argv test -f /usr/share/man/man3/Parallel::ForkManager.3 || sudo eopkg it perl-parallel-forkmanager +mkdir /tmp/vox +ifuse --documents com.coppertino.VoxMobile /tmp/vox + if not test -d $LOFI cd $HIFI fd -t d -x mkdir -p $LOFI/{} @@ -10,4 +14,7 @@ if not test -d $LOFI end set args -s $HIFI -d $LOFI -o opus -q 72 --clean sync -F 8 -a mp3,m4a,opus -acxi $args $argv || wget https://github.com/smxi/acxi/raw/stable/acxi -O- -o/dev/null | perl -- - $args $argv +acxi $args || wget https://github.com/smxi/acxi/raw/stable/acxi -O- -o/dev/null | perl -- - $args + +fusermount -u /tmp/vox +rmdir /tmp/vox