Bugzilla – Bug 17614
Add possibility to scan individual media folder
Last modified: 2011-10-17 06:50:38 UTC
Currently it's going to be very frustrating to users with both a large photo library a large video library and a large music library that there isn't any way to just scan one of them. There should be a way to: - Perform a full or incremental rescan of a specific media directory Ideally it should also be possible to add a new media directory without rescanning the already configured directories. The scenario for the typical user is that they won't change both music, photos and videos at the same time, so often it's pointless to scan all of the media folders, it just takes a lot of unnecessary time. The typical scenario is probably that a user has retagged the music and needs to do a full rescan to incorporate the changes in the SBS database, the result is that the scanning are going to take very long time because it also rescans the video and photo folders which haven't changed at all. If it's not possible or very hard to add scan support for one media folder, at least make it possible to scan all media folders which has been configured to scan for a specific type of media. So you can select to rescan all music folders or all video folders. This should be easy as I believe the media types are at least currently stored in completely separate tables in the database.
Thankyou for creatingbthe bug :) I and several other user is frustrated with this. se my post and sugestions here. http://forums.slimdevices.com/showpost.php?p=660123&postcount=14 Esentially the same as erlands proposal but with more words... What we need is . Adding and removing a folder should not interfere with anything else or any other folders dB It should not scan my designated music folder when adding a picture or video folder. And it should absolutely not start that scan automatically, but if it does scanner should run in the background and not interfer with the use of content already scanned from other folders. If I'm playing music the music should stop because I'm adding pictures ? Always the global options *Clear and rescan everything *Clear and rescan music *Clear and rescan pictures *Clear and rescan video *scan for new and changed *scan for new and changed music *scan for new and changed pictures *scan for new and changed video but as erland suggest a more clever option to scan folder a specific folder for specific content. Clear and rescan folder XYZ for music/ pictures/ video Scan for new and changed music/pictures/video in folder XYZ Other user Rienera http://forums.slimdevices.com/showpost.php?p=660466&postcount=31 Kuben 72 http://forums.slimdevices.com/showpost.php?p=660497&postcount=35 This is impotant this functionality is not well thougth out as it is now
Is this really an enhancement it is a bug imho . Not a software bug per definition, it works as designed. But the design is bad.
I think it should be related to the following bug https://bugs-archive.lyrion.org/show_bug.cgi?id=17546 see comment https://bugs-archive.lyrion.org/show_bug.cgi?id=17546#c8 Users should be able to browse folders and scan only those ones. I guess anybody trying to use a software like Mediamonkey will immediatly notice it is far easier and more user friendly than LMS/SBS. You can do everything you can do with SBS as far as scans, rescans, and automatic scans are concerned. But you can do do so much more, in a far more stable way, than with SBS/LMS, when you only need fast and simple use.
== Auto-comment from SVN commit #33558 to the slim repo by agrundman == == http://svn.slimdevices.com/slim?view=revision&revision=33558 == Bug 17614, various bug fixes for multi-dir scanning, support for passing in a single dir URL for the rescan command
Michael: The rescan command should now work with an optional URL to limit the rescan to only a single directory: rescan full file:///...
== Auto-comment from SVN commit #33559 to the slim repo by mherger == == http://svn.slimdevices.com/slim?view=revision&revision=33559 == Bug: 17614 Description: when adding new folders to the list of mediadirs, only scan newly added folders. Please note that removing an existing folder will still trigger a full wipe & rescan in order to get rid of the now unwanted files.
== Auto-comment from SVN commit #33561 to the slim repo by mherger == == http://svn.slimdevices.com/slim?view=revision&revision=33561 == Bug: 17614 Description: add option to rescan select folder only to web UI
Quick summary: - you can now rescan single folders from the web UI, but it's all enabled file types for that folder - when adding a new folder, only that folder is being scanned - when removing a folder from the list, a full wipe & rescan is triggered Andy - the full wipe & rescan is required as there's no way to remove files from the db unless they were located in one of the still existing mediadirs, right? If that's how we're going to live for 7.7.0, then please feel free to close this bug. Assigning back to Andy for review.
What are you going to do with the controlpanel? You can also add directories there but can't choose what to scan for.
> What are you going to do with the controlpanel? You can also add directories > there but can't choose what to scan for. Consider them advanced options, only available from the web UI.
Okay. I must admit I find it a bit difficult to call them advanced, since it means that you will get all your covers from your music as photos as well! Is it really that difficult to make a nice GUI for adding directories for scanning?
(In reply to comment #8) > Quick summary: > - you can now rescan single folders from the web UI, but it's all enabled file > types for that folder > - when adding a new folder, only that folder is being scanned > - when removing a folder from the list, a full wipe & rescan is triggered > What happens if I change the "file types" for a folder in some combination (I get it to 8 possible ways ) of Music,Pictures,Video I Assume that I can change these settings and then press "scan" ok. Or would unticking a box "trigger" something ? If I uncheck all file types will it be considered "disabled" in some way with path set but no actual content scanned. A way to have a temp directory of some content ,set the file type(s) and scan and it's there unset the file type scan again and it's gone . Or will it be considered "deleted" ? What happens if change the path to an already scanned folder, will this trigger a full vipe and rescan ? Must rescans be "triggered" can't it wait until I'm done with my changes and then I could manually choose clear and rescan. a warning message would do fine. The case can be that I want to remove one folder and add another one, well then the complete rescan is ongoing already ? Can I add another folder while a rescan is going on of the existing folders ? I can see this happen, a user removes one folder and adds something new. Or if I remove a folder and trigger a rescan should I just wait untill the rescan is done before adding a new folder These things can be tweaked a bit more after 7.7 releases, good that the functionality is there now :)
Must agree entirely with the aim of the request as when I first added a small additional media (music) folder, I thought this was a bug. Because of this and the hanging forever on 'Pre-caching Artwork' when looking for changed media (7.7.0 RC4) on Windows 7 and ReadyNAS, I have had to revert to 7.6.2. Will keep looking for progress and then try again. Regards
== Auto-comment from SVN commit #33567 to the slim repo by agrundman == == http://svn.slimdevices.com/slim?view=revision&revision=33567 == Bug 17614, fix bug where additional paths weren't scanned if first path had no changes
== Auto-comment from SVN commit #33589 to the slim repo by mherger == == http://svn.slimdevices.com/slim?view=revision&revision=33589 == Bug: 17614 Description: add flag to tell the server to queue up rescan requests; use queue to prevent duplicate requests triggered from changes on the settings page
== Auto-comment from SVN commit #33590 to the slim repo by mherger == == http://svn.slimdevices.com/slim?view=revision&revision=33590 == Bug: 17614 Description: trigger rescan when file type inclusion prefs are changed
> What happens if I change the "file types" for a folder in some combination (I > get it to 8 possible ways ) of Music,Pictures,Video When you add an exclusion and save that change, then a full wipecache is triggered (again same limitation as before). When exclusions are removed, only a rescan of the changed folders is triggered. > If I uncheck all file types will it be considered "disabled" in some way with > path set but no actual content scanned. A way to have a temp directory of some > content ,set the file type(s) and scan and it's there unset the file type scan > again and it's gone . > Or will it be considered "deleted" ? As disabling them will trigger a wipecache to clean up the DB they will disappear. > What happens if change the path to an already scanned folder, will this trigger > a full vipe and rescan ? Yes. Again: when files need to be removed from the DB, a wipecache is triggered. > Must rescans be "triggered" can't it wait until I'm done with my changes and > then I could manually choose clear and rescan. a warning message would do fine. > The case can be that I want to remove one folder and add another one, well then > the complete rescan is ongoing already ? Currently rescans are triggered automatically. > Can I add another folder while a rescan is going on of the existing folders ? > I can see this happen, a user removes one folder and adds something new. Yes you can. This would queue up a scan of that folder _only_. > Or if I remove a folder and trigger a rescan should I just wait untill the > rescan is done before adding a new folder Removal will trigger a wipecache (again). Adding a new folder while that scan is running would add the new folder on the queue, which would trigger a scan of that new folder as soon as the initial scan has finished.
I think this one is done, but needs a lot of testing.
LMS ver. r33594 It's working fine in multi folders scanning