How about implementing it in freevo as a popular shows feature? If freevo could note down the things you like watching include favourites and generally things you tend to watch, then you could hop to something that may interest you.
If you could pull in genre, you could possibly use the description and genre together to suggest other shows to the user. Just a thought, but its a cool script you came up with there. ;) K On Fri, 2005-10-07 at 01:01 -0400, Jason Tackaberry wrote: > So I have this shell script on my Freevo box that just lets me change > the channel on my tv. My laptop is usually on my lap, and since I'm so > unbelievably lazy that reaching 1-2 feet for my remote control is > considered work, I use this script to spare myself undue effort. > > So I can do "ch 515" and it'll change to that channel. I thought, > "Wouldn't it be nice if I could just specify a program name." So if I > know Simpsons is on (and it's pretty much on all the time on some > channel), I could do "ch simpsons" and it'll just go to the right > channel. > > So I thought I'd play with kaa.epg. I thought, how hard could it be to > parse my xmltv file into a database and do a query? > > Riiiggghhhtt. > > Well, I started kaa.epg parsing my xmltv file. Now it's not small -- > 17M -- but that's not exactly huge either. (27000 programs or so.) > After I saw the process grow to 410M I was not very impressed. This > isn't any improvement over 1.5.x. After the thing ran for 12 minutes > and still wasn't finished, I got impatient and aborted it. > > So I wrote my own. > > I use libxml2. For database, since I wanted to take advantage of > keyword searching, I use kaa.vfs. So my version uses 130M and takes 160 > seconds. Still not awesome, but at least it's tolerable. And it works > how I want it: > > [EMAIL PROTECTED] ~]$ python epg.py simpsons > WORD: simpsons (5525), freq=125/27604, idf_t=7.398163 > Program found: > Title: The Simpsons > Desc: Bart and Homer join a big brother program to > spite each other. > Chan: 625 COMEDC > Query took 0.0109269618988 > > I think this is a neat use of kaa.vfs. When you think about kaa.vfs's > design (at the db level), it's pretty flexible. You can specify > arbitrary objects with any parent/child relationship. So I define a > channel object, and a program object which is a child of a channel. > > kaa.vfs needs some improvements. The (object_type, object_name) mapping > works for this problem, but object_name is assumed to be a filename, not > an arbitrary data type. But few changes would need to be made to > kaa.vfs to make it an elegant solution to this kind of problem. > > Maybe kaa.epg can use kaa.vfs for database access. Maybe kaa.epg can > use libxml2, because god knows, whatever it's using now is brutally, > brutally slow. > > See attached. This isn't a real implementation. Just a > proof-of-concept hack. > > Jason. ------------------------------------------------------- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl _______________________________________________ Freevo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/freevo-devel
