Posts: 95
Joined: Feb 2016
Reputation:
0
Why is the "clean library" operation for video and music modal (ie. a popup that blocks you from doing anything else) instead of a background operation similar to the "scan" operations? Just because it isn't normally used that often?
Posts: 4,545
Joined: Jun 2015
Reputation:
269
Answering for the music library, the cleaning process needs nothing else to change the database contents so that it can do big checks to identify orphan records etc. Even during playback data gets updated e.g. playcount and ratings can be se. Kodi is using the databases even when you may not realise it, for example the video db is used even on non-library items for "watched" flag. And yes since cleaning is something that does not need to happen every day (or even week) it is perfectly sensible design to make it modal rather than implement some more complex selective locking.
Posts: 12,706
Joined: Nov 2003
Reputation:
129
spiff
Team-Kodi Member
Posts: 12,706
it's more a historic relic than anything. we can actually perform cleaning of the library in the background as parts of scans..
Posts: 4,545
Joined: Jun 2015
Reputation:
269
Yes some cleaning is simple and is already done in the background as part of scans, but deep cleaning needs more care. Doing it modaly is historic sure, and of course there are many things you could do at the same time without any consequnce e.g. play a video while cleaning the music db, but it also means one less thing to think about and accidentally break.
If someone does have that time and skills to safely remove the modality then I'm tempted to say please take on one of the many more urgent dev tasks!
Posts: 5,438
Joined: Jul 2012
Reputation:
378
FWIW in Leia there are built-ins to clean just MVs, movies, or TV Shows.
scott s.
.