PDA

View Full Version : MovieLibrary-Scraping database bug ?


The-Boxhead
2009-03-31, 21:14
Okay this drives me crazy...

The problem is that if i try to scan a movie folder to database
it just scans for a second then exits, and no info is added to my library.

I tried to manually ssh in and delete my movie database file and delete
all cahced movie stuff. Then it actually seems to scan all my movies
but when finished nothing is shows in my library.
However looking at the newly created mymovies.db in userdata the size
is about 1.5MB - wich should be about correct for the amount of movies i got there. I tried every scraper and settings i can think of - nothing works.

So i decided to format my computer, install linux from scratch and then
build latest from svn as of yesterday.

Sucess !! the first time i scanned my movie folder it got added to the library and everything worked perfectly.

However today when i entered my library it was empty !! The placeholder for
all the thumbs is there but no actuall pictures or info.
So now im again back to the same error. nothing i do will fix my library again.

Here's a debug part from when i try to rescan my movie folder:

20:02:30 T:2862443408 M:117174272 DEBUG: DoScan Skipping dir '/media/CZAR_DISK/Movies/' due to no change
20:02:30 T:2862443408 M:117174272 DEBUG: Hash[movies,/media/CZAR_DISK/Movies/]:DB=[74932053BE244543DCF20606DA55B0E9],Computed=[74932053BE244543DCF20606DA55B0E9]
20:02:30 T:2862443408 M:117174272 DEBUG: DoScan - Finished dir: /media/CZAR_DISK/Movies/
20:02:30 T:3053287232 M:116355072 DEBUG: Load special://home/skin/Aeon Stark/media/dialogs/progress_backg.png: 34.4ms
20:02:31 T:2862443408 M:116355072 DEBUG: Process - Finished scan
20:02:31 T:2862443408 M:116355072 NOTICE: My Videos: Scanning for video info using worker thread, operation took 00:00
20:02:31 T:2862443408 M:116355072 INFO: Video scan was stopped or finished ... restoring FindRemoteThumbs
20:02:31 T:2862443408 M:116355072 DEBUG: staticThread, deleting thread graphic context
20:02:31 T:2862443408 M:116355072 DEBUG: Thread 2862443408 terminating
20:02:31 T:3053287232 M:116387840 DEBUG: ------------------- GUI_MSG_WINDOW_DEINIT


If i delete mymovie.db file and reset everything and do a new set content and scan everything
seems to be scanned correctly, however library is still empty.
debug log from this scan:
http://pastebin.com/m388d1eaa




Im running ubuntu 8.10 interpid and SVN as of yesterday.
However this error has been with me from many builds back.

The-Boxhead
2009-03-31, 23:45
I've been doing some more research... Come to think of
it could this has something do do with linux and mounting of
external USB drives ?

Cause i think the drive got unmounted during the night and then
i remounted it again. However i remounted it with the exact same name
and in same location using UUID.

This is currently my only possible source of this error since it seems
like im the only one with this problem ;)

However im no linux guru so if anyone has any suggestions i would be grateful. :)

The-Boxhead
2009-04-02, 07:59
Still no one with any ideas ? :)

royw
2009-04-03, 11:19
Using svn 17947 here's the procedure I'd use after modifying .nfo files to get the new info into the database:

* in file mode, switch content type to none, and remove from database
* exit and restart xbmc
* in file mode, set content to Movie with auto scan and scan recursive set
* wait for scanning message box to complete
* exit and restart xbmc
* wait for scanning message box to complete

Note all my media drives are NFS mounted, so no help on the USB question.

HTH,
Roy

The-Boxhead
2009-04-03, 15:08
I apriciate all ideas to nail this problem. I gonna try your exact
idea to see if this changes anything for me.

And if this also fails i think i have to look at my usb mounted disk to see if the problem is caused by some linux specific paramters due to mounting etc.

Again thanks for the support !

The-Boxhead
2009-04-03, 21:35
Okay this didnt help any more sorry. Still the exact same thing happening.

Im sure now that this has to do with either file and folder properties on my drive or how they are layed out on the drive.

Gonna investigate this some more.

The-Boxhead
2009-04-05, 13:37
Okay im still unable to get library working.
I have used XBMC for many years and bellive
i know it pretty well in and out.

I have now however tried all i can think of and then some more ;)

If any1 can give some hints or if i need to give more information
please advise me...

The-Boxhead
2009-04-05, 23:31
Okay i gave it another go.

First i went on my movie folder from xbmc and set content to none, it works
for a while and seems to purge everything correctly.

I then ssh'ed into my .xbmc directory and mnaually deleted myvideos.db
and everything under \thumbnail\video\

Then i restarted XBMC

Went on my movie folder wich is organized as this:
Movies
-Movie1folder
-moviefile
-Movie2folder
-moviefile

I have used Media Info Plus on this folder and that works perfectly.

First i tried to only check for "automatic scan" and no recursiv option.
It just stopped on the first subfolder so i also checked the "scan recursive" option.

Now it the progress goes along quite fast and all my movie titles seems to be scanned ok.

Once again however when i go into library vies it's totally empty, not one single movie is in my library.

I tried also with PMIII and Mediastream skin to rule out problems but same thing.

Here a complete debuglog of the session:
Pastebin wouldent take my paste so i had to use filebin instead...
http://filebin.ca/qvxdbh/xbmc.log

vdrfan
2009-04-06, 00:50
Make sure you are not hiding unwatched items/movies. Otherwise, nuke your database and start over with a fresh one.

harryzimm
2009-04-06, 00:55
Try selecting the "use folder names for lookups" in scraper settings. If your using nfo files it will use the correct name anyway.

cheers

The-Boxhead
2009-04-06, 08:47
Thanks for the advices, but as i allready said i have nuked/deleted
my database many times and i have tried every combo options when it comes
to scannning folders to database.

The-Boxhead
2009-04-06, 11:43
Just a note.

Too totally nuke database i have manually deleted \userdata\Database\Mymovies.db
and all files under my movies cahce folder.

Is there any more files wich need to be deleted in order to completely wipe
all database stuff ?

As i said it worked when i completely nuked my whole .xbmc directory and made a new build. However it seems that my first scanning after a fresh install
seems to work and library is showing as expected. But suddenly after a short time library suddenly is empty and when this happens nothing seems to fix the database again.

I gonna try to completely wipe my .xbmc directory and create a new build from the latest alpha rel.

Gonna report back what happens.