Posts: 109
Joined: Sep 2004
Reputation:
0
gglaze
Senior Member
Posts: 109
hey guys, i have a problem that is probably not so common - i don't have a direct internet connection that i can use with my xbox, and right now it's not possible to have one, for reasons that i don't feel like getting into.
but i would really love to be able to use the imdb features. i am thinking about implementing some kind of offline imdb download tool/feature, that would allow me to use my laptop at home to connect to the xbox, and then to use xbmc to generate a series of "offline download" commands to be registered on my laptop. then later when my laptop is connected, it will download all of the necessary imdb info and then the next time the laptop is connected to xbmc, all of the info will be registered in the appropriate db.
so obviously this sounds like a somewhat long-winded and crazy way to get around a fairly simple problem. does anyone have any other suggestions for how i might be able to do what i want to do, other than getting my xbox connected directly? any other ideas?
read the xbmc
online-manual,
faq and
search the forums before posting! do not e-mail the xbmc-team asking for support!
read/follow the
forum rules! note! team-xbmc never have and never will host or distribute ms-xdk binaries/executables!
Posts: 109
Joined: Sep 2004
Reputation:
0
gglaze
Senior Member
Posts: 109
ok, getting the dump in whatever format shouldn't be so difficult - i can think of a number of ways to accomplish that.
the real technical question for me is - once i have the data, how do i go about getting it into the database in xbmc? i'll start browsing around the code to try to figure it out, but any pointers or ideas would be helpful.
read the xbmc
online-manual,
faq and
search the forums before posting! do not e-mail the xbmc-team asking for support!
read/follow the
forum rules! note! team-xbmc never have and never will host or distribute ms-xdk binaries/executables!
Posts: 26,215
Joined: Oct 2003
Reputation:
187
it's a plain sql database - the table format is in the somewhat out of date developer docs somewhere i think (otherwise, it's in the code).
we use sqllite which is available pretty widespread, and all the queries are basic sql - nothing tricky going on, so they should be reasonably easy to add to whatever you're using to access the imdb info.
Posts: 109
Joined: Sep 2004
Reputation:
0
gglaze
Senior Member
Posts: 109
sounds easy enough then. i guess the thing to decide is whether this is actually a tool that could be usefull to anyone else and should be made available, or whether i'll just keep it in my local build - or whether there is another way of accomplishing the same goal, but would provide some benefit to others.
read the xbmc
online-manual,
faq and
search the forums before posting! do not e-mail the xbmc-team asking for support!
read/follow the
forum rules! note! team-xbmc never have and never will host or distribute ms-xdk binaries/executables!
Posts: 26,215
Joined: Oct 2003
Reputation:
187
i think gglaze's current code for cleaning filenames up could be adapted for just this purpose.
as for info on the database and how to read it on the pc, i've started the beginnings of a writeup based on info gleaned from this forum (early this year) in the online manual (see advanced features)
cheers
jonathan
Posts: 26,215
Joined: Oct 2003
Reputation:
187
although it's getting slightly off-topic, we could also specify a "match percentage" that could be used in the case of scan (where currently we just grab the first found entry) to decrease the negative hits. ie we'd only retrieve the info for the video if it was a greater than 80% match for instance. this would be performed after filtering out all the xvid_ac3 etc. stuff.
Posts: 109
Joined: Sep 2004
Reputation:
0
gglaze
Senior Member
Posts: 109
yeah i'll have a look at adapting that cleaning code to work with the imdb scan in this way - i'm just now starting to look at the imdb functionality, since so far i haven't been able to get connected to use it, but it sounds like this would be a useful fix.
read the xbmc
online-manual,
faq and
search the forums before posting! do not e-mail the xbmc-team asking for support!
read/follow the
forum rules! note! team-xbmc never have and never will host or distribute ms-xdk binaries/executables!
Posts: 109
Joined: Sep 2004
Reputation:
0
gglaze
Senior Member
Posts: 109
yeah, i would do it kind of like a wizard, where it gives you possible choices when necessary to allow you to pick, or do a completely manual lookup if necessary. i'm guessing the current implementation doesn't have any kind of manual intervention?
if this stuff is not already implemented, it will definitely be on my todo list.
read the xbmc
online-manual,
faq and
search the forums before posting! do not e-mail the xbmc-team asking for support!
read/follow the
forum rules! note! team-xbmc never have and never will host or distribute ms-xdk binaries/executables!