Improved CLI importer reliability and UX

This commit is contained in:
Agate 2020-04-15 11:23:50 +02:00
commit ecb7c464a1
5 changed files with 184 additions and 81 deletions

View file

@ -0,0 +1 @@
CLI Importer is now more reliable and less resource-hungry on large libraries

View file

@ -5,3 +5,20 @@ Next release notes
Those release notes refer to the current development branch and are reset
after each release.
More reliable CLI importer
--------------------------
Our CLI importer is now more reliable and less prone to Out-of-Memory issues, especially when scanning large libraries. (hundreds of GB or bigger)
We've also improved the directory crawling logic, so that you don't have to use glob patterns or specify extensions when importing.
This means you can replace scripts that look like this::
python api/manage.py import_files $LIBRARY_ID "/srv/funkwhale/data/music/**/*.ogg" "/srv/funkwhale/data/music/**/*.mp3" --recursive --noinput
By this:
python api/manage.py import_files $LIBRARY_ID "/srv/funkwhale/data/music/" --recursive --noinput
And Funkwhale will happily import any supported audio file from the specified directory.