Posts: 456
Joined: Dec 2010
Reputation:
0
Hello, I have my NAS shut down once a week on Sunday night. It comes back online later on Monday. My problem is that XBMC removes my entire music library at some point when the NAS is offline. All of my other libraries are intact. Any idea why this is happening? I checked and "clean library" is off in settings.
Posts: 26,215
Joined: Oct 2003
Reputation:
187
If you "update library" in the music during that period, then it may do that regardless of whether "clean library" is available or not, but really we can't tell until you get a log of it occurring.
Posts: 26,215
Joined: Oct 2003
Reputation:
187
The video library is "dumb" in that it ignores anything that is no longer there - basically, given a changed folder it'll just go through it and add in anything new that it has found, ignoring anything that is already there, regardless of whether it has changed or not.
The music library is "smart" in that if anything changes it will rescan that folder and update it, so if anything has changed it will pick it up, and if anything has been removed it'll remove it.
The problem is it thinks the folder has gone, even though what has actually happened is the NAS is no longer reachable. So in this case, the "smart" behaviour is in fact "dumb".
Cheers,
Jonathan
Posts: 456
Joined: Dec 2010
Reputation:
0
Thanks again. It would be great if the music library could tell the difference between a folder being removed and the source not being available.
I guess my only option now is to not auto-update my music library which makes XBMC not quite as user friendly....
Posts: 2
Joined: Jun 2011
Reputation:
0
2011-06-17, 12:29
(This post was last modified: 2011-06-17, 12:33 by LesMcQueen.)
That would also explain my problem.
I store my music on my NAS.
I was finding that I was losing music for Artists from A-D quite regularly. E-Z were fine. If I ran a manual library update it would re-populate the library as it should be.
It dawned on me last night that it was probably down to the time taken by my NAS to spin the disks up after being woken by XBMC. I had it configured to update the library on startup, which it was doing every time the HTPC wakes from sleep.
I've disabled all auto-updates and I'll do it manually from now on. Can't help feeling that the Video update method is more robust, it would just need a periodic 'clean' after any big changes.
Posts: 3,956
Joined: Dec 2008
Reputation:
62
I would suggest exposing an option in settings to autoremove videos/music that are no longer available. Option would be visible if auto update library on startup is enabled. This way one can choose if DB would act as smart or dumb, according to his preferences.