MediaPortal Forums HTPC/MediaCenter

Go Back   MediaPortal Forum » MediaPortal 1 » Help on Development » General Development (no feature request here!)


General Development (no feature request here!) You were able to fix an issue, or improved a feature? Post it here.

Reply
 
LinkBack Thread Tools Display Modes
Old 2006-05-09, 17:49   #11 (permalink)
Portal Member
 
Join Date: Sep 2004
Posts: 22
Thanks: 5
Thanked 0 Times in 0 Posts

Country:


Default

Quote:
Originally Posted by mzemina
Since you have 450 movies. How did you keep track of them before? Did you use some sort of catalog application or use a spreadsheet or database program or did you just manually write them down on index cards - or typed into a book?

Please note that I am not trying to be stupid or funny or mean, I just want to know how you have tracked them in the past?
I store all my movies on harddrives. One seperate folder for each movie. The folder is named the title of the movie. I want to be able to sort after name, category or if i have seen them or not. Thats why i want to use the db.
But scaning 450 movies is a real pain in the ass if i have to babysit the whole scan.

I like the sugestion from Cinetix.
In erlier versions it was quite fast to scan the movies when MP did't downloaded the actors info. What I want is info about the movie and what actors that stars in it. I don't need the pictures of all the actors and a list of all the movies they have been in.

And why does MP rescan all the movies when i press tha scan button? Why not make it just scan the movies thats not in the db and then add a new button named rescan if you sometime want's to rescan all the movies?
Cojo is offline   Reply With Quote
Old 2006-05-10, 11:05   #12 (permalink)
Portal Member
 
Join Date: May 2006
Location: Denmark
Posts: 49
Thanks: 0
Thanked 0 Times in 0 Posts


Default

Quote:
Originally Posted by Cojo
And why does MP rescan all the movies when i press tha scan button? Why not make it just scan the movies thats not in the db and then add a new button named rescan if you sometime want's to rescan all the movies?
The ”rescan” is probably to keep the information updated but I would prefer manual rescan.

Is it possible to make a plug-in that scans what you ask for? Like: C:\Movies\<moviename>.<extension>
Then you could customize it: C:\Movies\<moviename>\*.<extension>
And then an option: “Movies are in folders” Checked or unchecked.
Then the stack problem will be resolved.
And another option: “Preferably use cover art in folders”.
Cinetix is offline   Reply With Quote
Old 2006-05-17, 20:21   #13 (permalink)
Portal User
 
Join Date: May 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts


Default

I agree! MP should only connect to imddb/ofdb on request. At the moment MP connects on every ditail view

I also prefer to define local coverart. At the moment i don't know which picture is taken to display. Folder.jpg seams not to work for my movies. if i name the coverart to the name of the movie filename also nothing happens. But i saw coverart with movie filename in the thumbs folder...

why can't i use the link to a file instead of on http adress? I don't like tracking by foreign sites in the web when i'am using mp oder browsing the database in the setup tool....
DrNick is offline   Reply With Quote
Old 2006-05-17, 20:50   #14 (permalink)
Portal Member
 
Join Date: Jan 2005
Age: 28
Posts: 100
Thanks: 0
Thanked 0 Times in 0 Posts

Country:

My System

Default

i think the most elegant solution would be to go without the DB...

Instead, find a way to store the movie info in an .xml file, let's say with the same name as the movie name, but with a different extention.

Then, all info for a movie are stored with it in the same folder. Another folder could be done to store all the actors, and just do a cross reference from the movie info to lookup the actors details.

This would bring
1) portability to the movies, since even if burned on cd and taken on another pc, the movie info would be available instantly
2) Fix for the "i have 3 pc's and want a central DB"
3) Fix for the "i've reinstalled MP or upgraded and need to update 450$@#$@#$@#$ movies"... AGAIN!
4) Allow for 3rd party application development to create individual movie updates (like the Album Cover Art Downloader for movie covers, but for movie info)

I have some programming bg to know that this is not that difficult to implement, however, i can't help with the C# code that is running now..

Hope this gets to see the light of the day!!!! (or at least enter the long term to-do list

See ya
moullas is offline   Reply With Quote
Old 2006-08-11, 11:03   #15 (permalink)
Portal Member
 
Join Date: Jul 2006
Location: UK
Posts: 255
Thanks: 0
Thanked 4 Times in 3 Posts

My System

Default

After a hard days SQLing I managed to completely move all the info from the 6 main tables as used for movie info by MythTV into the many tables of the MediaPortal database + Generated a script to rename the thumbnails and it all works PEFECTLY!

However I now have a database with 6,000 video entries (lots of music videos + divx movies, DVD's etc) and to load it up it takes over 1 minute. Once loaded in actual useage it works fine, but if you wish to select say a different genre again it takes another minute to reload. If you press IMDB on an entry to view the IMDB info, when you exit it drops back to the genre list, NOT where you were before so again it's another minute to re-view the list. This obviously makes it unuseable.

Having used SQLite with that SQLite Database Browser.exe program extensively in my mythtv migration, it seems very very fast in operation (inserts, joins, exports, searches etc) even with 6k records, so I can only assume that the database code is incredibly inefficient? I also notice there are no indexes used in the database. I'm going to try and add some indexes to see if it improves things, if not I plan to go in and check the code, (I planned to do lots of things but haven't managed yet).
HappyTalk is offline   Reply With Quote
Old 2006-08-11, 11:28   #16 (permalink)
Portal Member
 
Join Date: Jul 2006
Location: UK
Posts: 255
Thanks: 0
Thanked 4 Times in 3 Posts

My System

Default

YIPPEE - I added the indexes and NOW the database works at lightening speeds!!! I'll collate my actions into a new post within the next few hours after more testing, on how to fix the database (and no coding required!!!) - I'll then see if it can similarly fix the music database.
HappyTalk is offline   Reply With Quote
Old 2006-08-11, 11:47   #17 (permalink)
Portal Member
 
Lyxalig's Avatar
 
Join Date: Jan 2005
Location: Norway
Age: 24
Posts: 268
Thanks: 0
Thanked 0 Times in 0 Posts

Country:

My System

Send a message via MSN to Lyxalig
Default

GREAT! 8)
__________________
If the MP community isn't able to do it... Who are?
Lyxalig is offline   Reply With Quote
Old 2006-08-30, 19:44   #18 (permalink)
Portal Member
 
Join Date: Jul 2006
Location: UK
Posts: 255
Thanks: 0
Thanked 4 Times in 3 Posts

My System

Default

Hmmm looking into the database schema for the movie database some things don't make sense.

Why does the movie database have an idpath field, given that the file(s) location must be keyed off the files table that already has an idpath field.

Given that movieinfo is unique for each movie, why is that table not just merged with the movie table.

The movie table contains the discid used to prompt which dvd to insert BUT what if a movie is spread over 2 different disks, surely this field needs to be in the files table? (same problem issue for idpath)

It all looks over complex to me and certainly makes manual editing nigh on impossible. Personally I would have one main movie table with the movie/movieinfo fields merged. I would keep the files table containing full paths to the files with the discid field from the 'movie' table and the 'cdlabel' field from the 'path' table and drop the path table. The other tables all seem ok.

I originally moved all my movie info over from mythtv, so ensured it was all correct. Having subsequently imported new ones and edited a few others using the tool in MP configuration I realise it is now ending up a mess.

As I ONLY use the video DB for an offline DVD based movie library, I have created a simple SQL script to tidy things up and ensure database integrity so there is only one path entry per DVD that matches the movie.discid and each file contains the full path offset eg:
path.strPath='M:'
files.strFilename="\Simpsons\Simpsons.1x01.Pilot.a vi'

If you wanna do similar BACKUP YOUR DATABASE FIRST!!!, then run this SQL query from a file. Change from M: to YOUR DVD drive letter in last statement + ensure that you have properly set the discid's in the movie table like DVD#001,DVD#002 etc...
Code:
UPDATE files
SET strFilename = (SELECT SUBSTR(path.strPath,3,999) from path where files.idPath = path.idPath) || files.strFilename;

UPDATE movie SET idPath = SUBSTR(discid,5,3);

UPDATE files SET idPath = (SELECT movie.idPath FROM movie WHERE files.idMovie = movie.idMovie);

UPDATE path SET strPath = 'M:', cdlabel = 'nolabel' || idPath;
Remember this is intended only for a DVD based library.

Last edited by HappyTalk; 2006-08-31 at 00:01.
HappyTalk is offline   Reply With Quote
Old 2006-08-31, 00:37   #19 (permalink)
Portal Member
 
Join Date: Feb 2006
Location: Missouri
Age: 23
Posts: 184
Thanks: 3
Thanked 1 Time in 1 Post

Country:

My System

Default

Quote:
Originally Posted by elliottmc View Post
It really is a pain to have to rebuild the database on all three machines periodically. Is it possible to have the databases stored in a file/folder where the shares are stored, so that they are automatically loaded.
Couldnt you just copy the database from 1 machine to the next?
keith2045 is offline   Reply With Quote
Old 2006-11-22, 19:53   #20 (permalink)
Portal Member
 
Join Date: Nov 2006
Age: 38
Posts: 30
Thanks: 2
Thanked 0 Times in 0 Posts

Country:


Default

this tread is a littlebit out of time, but i´m also serching for a possibility to share the Database in the Movie / Mp3 / MP-TVSeries???

Somone finde a way to make it possible???

THX
Netzdiver
Netzdiver is offline   Reply With Quote
Reply

Bookmarks

Tags
database, improval, movie, suggestions, workflow

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 On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
(original thread) US/Canadian/Mexico EPG Zap2it Plugin Released bradsjm zap2it (discontinued) 513 2007-02-21 14:07
(original thread) MyFilms v3.1 - Use an ANT Movie Database (AMC) in MP zebons My Films 201 2007-02-12 08:27
Help with TVServer and client rick78 Get Support 8 2006-12-12 18:48
Recordings to movie database Jetboy Improvement Suggestions 0 2006-11-28 10:16
0.2.1 and latest svn MyPictures thumbnails broken gloomyandy Codecs, External Players 1 2006-10-24 10:01


All times are GMT +1. The time now is 07:29.


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