I found a trick to import files from LibreTime to Funwhale. 🙂
First, I created a symbolic link of a LibreTime user folder for Funkwhale:
ln -s /srv/libretime/imported/2 /srv/funkwhale/data/music/User
Where "1" is the LibreTime user number and "User" is the Funkwhale user name.
Then I create an audio library dedicated to importing into Funkwhale (which I name Radio for example)
cd /srv/funkwhale
export LIBRARY_ID="20a43a96"
Where "20a43a96" is the Funkwhale Audio Library ID (the first part is sufficient).
./manage import_files $LIBRARY_ID "/srv/funkwhale/data/music/User/" --recursive --noinput --in-place
I noticed that the --watch function (example below) does not work (operation never completes). I can relaunch the precedent command to import new files but it doesn't detect deleted files on LibreTime.
./manage import_files $LIBRARY_ID "/srv/funkwhale/data/music/Tone/" --recursive --noinput --in-place --watch
It's a good start ! 😃