Kodi Community Forum
XBMC - Clean Library Function, deletes entire library from database? - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: OS independent / Other (https://forum.kodi.tv/forumdisplay.php?fid=228)
+---- Thread: XBMC - Clean Library Function, deletes entire library from database? (/showthread.php?tid=152988)



XBMC - Clean Library Function, deletes entire library from database? - Binskin - 2013-01-22

I have a strange issue, i've been updating my media library to HD and as a result have a large number of duplicates, ive been cleaning up on the file server side as i go along.

This afternoon i thought i would run the clean library function, assuming the system would interrogate each entry in the library, if it could not find a resulting file the entry would be removed from the database. However what i have found is that it simply completely wipes the library - checking the tvshow / movie count in the database also shows 0 entries.

While im waiting for 780 movies to be imported back into the library, would anyone have any ideas why this might be the case?

Im running xbmc 12 RC3 on Win 7, the source files for my media (and shared database) are located on a separate windows 08 r2 (WHS) server and accessed via SMB, xbmc has no issues accessing the shares, as to get it back all i need to to is select the source and rescan it.

I've also found it also drops the source settings - what the source is (Movies / TV / Music) and scraper settings.


RE: XBMC - Clean Library Function, deletes entire library from database? - e2zippo - 2013-01-22

(2013-01-22, 11:22)Binskin Wrote: I have a strange issue, i've been updating my media library to HD and as a result have a large number of duplicates, ive been cleaning up on the file server side as i go along.

This afternoon i thought i would run the clean library function, assuming the system would interrogate each entry in the library, if it could not find a resulting file the entry would be removed from the database. However what i have found is that it simply completely wipes the library - checking the tvshow / movie count in the database also shows 0 entries.

While im waiting for 780 movies to be imported back into the library, would anyone have any ideas why this might be the case?

Im running xbmc 12 RC3 on Win 7, the source files for my media (and shared database) are located on a separate windows 08 r2 (WHS) server and accessed via SMB, xbmc has no issues accessing the shares, as to get it back all i need to to is select the source and rescan it.

I've also found it also drops the source settings - what the source is (Movies / TV / Music) and scraper settings.

I had this happen to me as well, several times actually! Though in my case the source of my movies was turned off (desktop-computer) so it kinda made sense.

In your case, could it be that the SMB share disconnected due to time out (default is 15 min i think).

It can be turned off in two ways, either on the klient side, or the server.

Here's how to do it on the server.

Just open up a cmd with administrator rights and enter this command.

Code:
net config server /autodisconnect:-1

"net config server /autodisconnect:number

number is the number of minutes that you want the server to wait before disconnecting the connection."


Maybe that'll help.

Cheers!




RE: XBMC - Clean Library Function, deletes entire library from database? - Binskin - 2013-01-22

Excellent, thanks for the input, ill give it a go tomorrow (after i backup my library this time!)

Will post back with the findings.