Added option to exclude certain folders from scanning #85
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I've had issues with Artwork Downloader scanning folders of non-IMDB media like home movies, web shows or adult movies and sometimes even downloading the wrong artwork for them when names would match up. After some fiddling there didn't seem to be any good solution to limit the scanning process only to a subset of my library. Now I added a new folder exclusion setting to AD to skip all media in certain folders and subfolders, very similar to exclusions in the trakt.tv plugin for XBMC. Right now it's limited to a maximum of 3 exclusion rules.
I have very little experience with Python or scripting for XBMC so I'm probably not aware of any unforseen side effects or possible bugs in my few lines of code. However, it did seem to work just fine in my few test scenarios both on Windows and Raspberry Pi (OpenElec distro).
(relevant posts in the AD forum thread regarding this missing feature: http://forum.xbmc.org/showthread.php?tid=114633&pid=1768736#pid1768736)