Posts: 24
Joined: Jan 2006
Reputation:
0
spyda
Junior Member
Posts: 24
Any way to create a shortcut to clean the library - same as the option under system > settings > video?
I know I can edit the advancedsettings.xml to automate this on library updates but as I use a network share location on a laptop that is not always on this isn't an option as a clean when the share is not available will result in a lost library!
I would be happy to simply run a library update on start and have a menu / favourite option to clean the library when needed (without having to take all the steps above).
Possible?
Posts: 6,339
Joined: Jul 2010
Reputation:
116
artrafael
Team-XBMC Forum Moderator
Posts: 6,339
You can use the CleanLibrary(Video) built-in function.
Posts: 178
Joined: Feb 2011
Reputation:
2
"Scan for new content" is different from "update library", and the difference can be very useful.
"Scan for new content" looks at the currently selected folder only, so if you've just added one new movie or show, you can scan that directory and get the update very quickly.
"Update Library" will look at all directories that haven't been specifically excluded from library updates in the Set Content description.
One way that I use this, is that I have a large number of static directories. They never, or almost never change content. So I exclude them from Library updates, because it makes that process go much faster. But every once in awhile, I might add something to them, and I can still update them with "Scan for new content."
Posts: 24
Joined: Jan 2006
Reputation:
0
spyda
Junior Member
Posts: 24
Ah, my setup is not as complicated as that - I have only one shared folder with two sub-folders, Films and TV. Files are removed and added often and for some reason sometimes only the 'scan for new content' option will show up recently added videos whereas other times 'update library' will work fine. Seems to depend on the actual file added.
Having shortcuts to the update and clean options in favourites works well in the absence of anything to automate the process but I can't find the command / parameters needed to 'scan for new content' to add to the favourites.xml file.
Anyone have any idea what the command would be?
Posts: 55
Joined: Jan 2013
Reputation:
0
Thanks a lot for the info, this really helped me