mopidy / mopidy-local-sqlite

DEPRECATED (Mopidy SQLite local library extension)
https://mopidy.com
Apache License 2.0
30 stars 10 forks source link

Directories showing up empty after successful scan #62

Closed jcass77 closed 9 years ago

jcass77 commented 9 years ago

Nothing is showing up in the local media backend when using a web client to access Mopidy, even after running mopidy local scan successfully.

It seems that the library.db file is now being written to data_dir/images instead of data_dir/sqlite as in previous releases?

Based on the following log output, I suspect that the database is inadvertently deleted by https://github.com/tkem/mopidy-local-images/blob/befc8274e94b990faa2ef729dd77d2f7bdffc667/mopidy_local_images/library.py#L158-171

INFO Removing 0 missing tracks. INFO Found 0 tracks which need to be updated. INFO Scanning... INFO Scanned 0 of 0 files in 0s. INFO Cleaning up image directory INFO Deleting file /var/lib/mopidy/localdata/images/library.db INFO Done scanning.

I'm using Mopidy-Local-Images (0.3.3) and Mopidy-Local-SQLite (0.10.1).

tkem commented 9 years ago

Thanks for reporting. Will be fixed ASAP.

tkem commented 9 years ago

Pleas try updating Mopidy-Local-SQLite to v0.10.2.