Open theking2 opened 1 week ago
A wipe & rescan deletes everything from the tables. See https://github.com/LMS-Community/slimserver/blob/public/9.0/SQL/SQLite/schema_clear.sql. If you end up with empty genres, then something else might be at play. Please check your files for where the tag might have survived. It could also be there's an album which has some tracks with that genre only, or with multiple genres, and the menu was filtering at the album level or whatever.
If you end up with empty genres, then something else might be at play. Please check your files for where the tag might have survived. It could also be there's an album which has some tracks with that genre only, or with multiple genres, and the menu was filtering at the album level or whatever.
Possibly but if I click Genres from the main menu those tracks than would be listed under the specific genre, wouldn't they? Is there a way to find that in the database?
If you enable logging for database.sql
, you'll get to see what queries are being used when browsing menus. Maybe this helps shed some light on the issue? Also feel free to send me a copy of your library.db file https://www.dropbox.com/request/T3RctyzGgNg0oFDubq6a
...Also feel free to send me a copy of your library.db file https://www.dropbox.com/request/T3RctyzGgNg0oFDubq6a
done
Did you browse to such an empty genre with the logging enabled? I can't find any trace of it in server.log.
The scanner.log doesn't have a single error message. I believe the scan itself is fine. Maybe you can share your library.db with me?
Did you browse to such an empty genre with the logging enabled? I can't find any trace of it in server.log.
The scanner.log doesn't have a single error message. I believe the scan itself is fine. Maybe you can share your library.db with me?
It's a little difficult as I don't know which of these should be on info (debug?)
(database.info) - Metadata & Parsing Logging (database.mysql) - MySQL Initialization & Process Information (database.sql) - SQL Logging (Advanced) (database.virtuallibraries) - Library Views (virtual libraries)
but I think these are ones you are looking for? (the last select turned out zero tracks) :
[24-12-01 14:42:52.9400] Slim::Menu::BrowseLibrary::_topLevel (768) params=>mode=genres
[24-12-01 14:42:52.9528] Slim::Menu::BrowseLibrary::_generic (938) genres (0, 1): tags ->tags:sZZ
[24-12-01 14:42:52.9602] Slim::Menu::BrowseLibrary::__ANON__ (897) genres (0, 51): tags ->tags:s
[24-12-01 14:42:55.6629] Slim::Menu::BrowseLibrary::_topLevel (768) params=>mode=genres
[24-12-01 14:42:55.6635] Slim::Menu::BrowseLibrary::__ANON__ (897) genres (0, 1): tags ->tags:s
[24-12-01 14:42:55.6667] Slim::Menu::BrowseLibrary::_topLevel (768) params=>genre_id=624&role_id=ALBUMARTIST&mode=artists
[24-12-01 14:42:55.6674] Slim::Menu::BrowseLibrary::_generic (938) artists (0, 1): tags ->genre_id:624, role_id:ALBUMARTIST, tags:sZZ
[24-12-01 14:42:55.6701] Slim::Menu::BrowseLibrary::__ANON__ (897) artists (0, 50): tags ->genre_id:624, role_id:ALBUMARTIST, tags:s
[24-12-01 14:42:55.6729] Slim::Control::Queries::artistsQuery (1235) Artists query: SELECT contributors.id, contributors.name, contributors.namesort FROM contributors JOIN contributor_track ON contributor_track.contributor = contributors.id JOIN tracks ON tracks.id = contributor_track.track JOIN genre_track ON genre_track.track = tracks.id JOIN albums ON albums.id = tracks.album WHERE genre_track.genre IN (?) AND (contributor_track.role IN (5,1) ) AND (albums.compilation IS NULL OR albums.compilation = 0 OR contributors.id = 6860) GROUP BY contributors.id ORDER BY contributors.namesort COLLATE en_US , contributors.musicbrainz_id LIMIT ?,? / [624, 0, 50]
[24-12-01 14:42:59.2893] Slim::Menu::BrowseLibrary::_topLevel (768) params=>mode=genres
[24-12-01 14:42:59.2900] Slim::Menu::BrowseLibrary::__ANON__ (897) genres (1, 1): tags ->tags:s
[24-12-01 14:42:59.2931] Slim::Menu::BrowseLibrary::_topLevel (768) params=>role_id=ALBUMARTIST&genre_id=631&mode=artists
[24-12-01 14:42:59.2937] Slim::Menu::BrowseLibrary::_generic (938) artists (0, 1): tags ->genre_id:631, role_id:ALBUMARTIST, tags:sZZ
[24-12-01 14:42:59.2957] Slim::Menu::BrowseLibrary::__ANON__ (897) artists (0, 50): tags ->genre_id:631, role_id:ALBUMARTIST, tags:s
How do I access library.db
?
My second language is SQL so if I were able to issue queries directly I could try and help you. Is that possible?
Yes, that might be the relevant query. You'll find the library.db file in your cache folder, as listed in Settings/Information.
Uploaded library.db
After a "Clear library and rescan everything" genres are not cleared.
1) Select "Clear library and rescan everything" and click "Rescan 2) Wait for the process to finalize 3) The Genres list contains empty genres
The content of the scanner.log file: