Bugzilla – Bug 9429
Rescan music library shows wrong type during scan
Last modified: 2009-07-31 10:29:33 UTC
If I select 'clear library and rescan everything' in the web interface then hit Rescan, the drop-down greys out but displays 'look for new and changed music' (the top item in the list) as the selected item. It does carry out the correct rescan, so this is only cosmetic. However, it does make it look as if its not doing the requested rescan. Firefox 3 on Windows Vista.
It's always displaying the default scan type, no matter what you select.
a one-line change in EN/settings/server/basic.html will take care of keeping the selected rescan showing when triggered: Line 43: <option [% IF pref_rescantype == option.key %]selected [% END %]value="[% option.key %]">[% option.value | string %]</option> What this does not do is handle the case where the settings page is accessed directly from the home page settings link. However, I'd suggest that this is near to pointless. If for some reason the obsessive types feel it's required, then perhaps store the scan type in the "isScanning" field of the DB instead of just 1/0. Then you can call that to the page. Either that, or fold the scheduled rescan plugin into the basic settings pages as core code and universally store the last selected type. The template can then use that for selecting the default and for showing the current type while scanning.
*** Bug 9386 has been marked as a duplicate of this bug. ***
It would be good to store the rescan type, for display of the last "music scan details" on the settings status page.
Created attachment 3963 [details] record scan type in db, show on settings and status pages shoves the string token into the isScanning metaInformation in the db. This allows us to compare with the options of the rescan form on the basic settings and show current scan type on status page. Feel free to rework ui to suit.
Created attachment 3964 [details] remove a debug updated version of the patch sans a warning flag I had left in.
change 23243 - thanks kdf!
This bug has been fixed in the 7.3.0 release version of SqueezeCenter! Please download the new version from http://www.slimdevices.com/su_downloads.html if you haven't already. If you are still experiencing this problem, feel free to reopen the bug with your new comments and we'll have another look.
Reduce number of active targets for SC