MediaPortal Forums HTPC/MediaCenter

Go Back   MediaPortal Forum » MediaPortal 1 » Main Features (talk, share your ideas, get support) » Watch / Listen Media » watch/edit Videos » Support


Support Post problems you have with an video feature here.

Reply
 
Thread Tools Display Modes
Old 2007-08-29, 13:54   #1 (permalink)
Portal Member
 
Join Date: Aug 2007
Posts: 13
Thanks: 2
Thanked 0 Times in 0 Posts


Default Movie Database - Import My Own Data?

I have a bunch of home movies I'd like to catalog and watch using My Videos. I have data about them in Excel (and I've also ported it to Access). I'm hoping to import this data into the "VideoDatabasev5.db3" database.

I have slavishly conformed to the table structure of this database with my data (after browsing the data that MediaPortal itself adds when doing an IMDB scan).

I then import my data using a third party solution, the SQLite Data Wizard from SQL Maestro (which seems to have a problem with Excel data sources, so I have to convert my Excel data to an Access database first).

I do the import into a blank database (which I create using the "Reset Database" command from MediaPortal Setup). When I browse the tables with the SQLite Database Browser, the new data is there, and looks good.

But when I run MediaPortal, none of these entries appear when I choose to View "by Title". When I view "by Share", the files appear - but as far as I can tell, "by Title" populates its list based on the database contents and "by Share" populates its list based on the contents of a directory.

So it seems that something is preventing MediaPortal from considering these additions to be valid records, but I can't for the life of me figure out what it is. When I add records manually using the SQLite Database Browser, they seem to be recognized by MediaPortal (even though they look identical to the ones that are imported) - so I'm stumped.

Does anyone have any experience with this? Any suggestions would be greatly appreciated.
ckcomm is offline   Reply With Quote
Old 2007-08-29, 13:58   #2 (permalink)
Portal Member
 
mbuzina's Avatar
 
Join Date: Apr 2005
Location: Germany
Age: 34
Posts: 457
Thanks: 1
Thanked 2 Times in 2 Posts

Country:


Default

Did you double check that your foreign keys are setup right? The selects from mp are usually grabbing data from more than one table (don't know for movies for sure). So make sure your genre, actors, directories / file tables are fille neatly as well.

Otherwise, attach a copy of a loaded db & I can have a look as well.
__________________
*** Power is nothing without control ***
mbuzina is offline   Reply With Quote
Old 2007-08-30, 13:46   #3 (permalink)
Portal Member
 
Join Date: Aug 2007
Posts: 13
Thanks: 2
Thanked 0 Times in 0 Posts


Default

OK, here's a copy of the database with 10 movies loaded (along with 10 dummy actors, 1 genre, 1 path, etc.).

None of the titles appears when I browse by anything other than "by Share" (which doesn't use the database data, as far as I can tell). In case it's important, the video files referenced in the database actually do exist in this location on my computer.

mbuzina, please disregard my private message asking how to attach a file and get it to you. I eventually figured it out (and I added a .txt extension so the file would be accepted). Sorry to bother you with that.

If you have a chance to take a look at this, I'd be very grateful. I'm really puzzled about why these records are invalid.
Attached Files
File Type: txt VideoDatabaseV5.db3.txt (40.0 KB, 21 views)
ckcomm is offline   Reply With Quote
Old 2007-08-30, 14:48   #4 (permalink)
Portal Member
 
mbuzina's Avatar
 
Join Date: Apr 2005
Location: Germany
Age: 34
Posts: 457
Thanks: 1
Thanked 2 Times in 2 Posts

Country:


Default

I found your problem.

In the table movieinfo you left the iYear field empty. This value is then converted to a number, which fails, because numbers are not nullable (in C#). So, either enter the real year or do as I did, enter 0 and it will work.

P.S.: Tip for next time: Check your log files, it stated pretty clearly that a String could not be converted to a Number.
__________________
*** Power is nothing without control ***
mbuzina is offline   Reply With Quote
Old 2007-08-31, 14:07   #5 (permalink)
Portal Member
 
Join Date: Aug 2007
Posts: 13
Thanks: 2
Thanked 0 Times in 0 Posts


Default

Makes perfect sense - I'll give it another try. Thanks so much for your help! I didn't think to look at the logs for this type of issue, so thanks for the tip too.
ckcomm is offline   Reply With Quote
Reply

Bookmarks

Tags
data, database, import, movie

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Anregungen zur movie-database: verbesserter Import und Szenenbilder chefkoch Media Portal - Support 4 2008-05-18 16:58
Will not import tvguide data john4780 zap2it (discontinued) 3 2007-03-07 21:44
movie database: better import and 'scene-picture' support chefkoch Improvement Suggestions 11 2006-10-30 12:19
Import meedio / sceneo media Data? flixx OffTopic 5 2006-05-16 12:32
Movie Database Import graemef Improvement Suggestions 2 2005-04-30 05:25


All times are GMT +1. The time now is 20:12.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 Protected by Akismet Blog with WordPress