View Full Version : XMLTV plugin
curtiswren
February 28th, 2005, 07:54 PM
I've ported the XMLTV plugin to girder4. The lua function names have all changed from XMLTV_* to xmltv.*.
quixote
March 1st, 2005, 07:50 AM
Thanks, Curtis! I'll d/l it when I get back from work.
Ron, maybe you could ask VaioUserChris if he wants to beta test Girder 4, also. From what I can see, he is very knowledgeable when it comes to LUA scripting and it might be nice to give him a leg up on things with the new scripting.
He created a display that uses Curtiswren's XMLTV plugin and Mike C's internet explorer display that is top-notch.
VaioUserChris
March 1st, 2005, 01:10 PM
Hey thanks quixote,
Ron actually already added me to the beta testing group, but I was trying to finish that TV schedule display first before diving in. Since that's out of the way I plan to start experimenting.
Do you happen to know if the current version of Girder and the Girder 4.0 beta can exist on the same machine? ( I figure that I can't run them at the same time but can I switch from one to the other?)
Chris
Rob H
March 1st, 2005, 02:34 PM
Yes, no problem with them coexisting
VaioUserChris
August 17th, 2005, 10:16 AM
Curtis,
Would it be possible for your plugin to return a few additional items from the xmltv file? It looks like the only program attributes it doesn't return are the director field, the program star rating, and the program MPAA rating. Could you add those?
The plugin works great by the way. Thanks for developing this.
Chris
curtiswren
August 18th, 2005, 10:50 AM
It might take a week or two before I get a chance to look at this. My pc has just died, and I'm going on holidays tomorrow. I'll take a look when I get back.
VaioUserChris
August 19th, 2005, 09:12 AM
Thanks :D
Chris
curtiswren
September 3rd, 2005, 08:53 AM
I just updated the link at the top to include attributes that are nested 1 level deep. I think this should now include all the fields.
quixote
September 3rd, 2005, 11:13 AM
Hi Curtis. Did you send the code to Ron? We were having some trouble with crashes I think.
curtiswren
September 3rd, 2005, 06:56 PM
I believe the crashes were fixed with the previous version I put out. I didn't realize you had to call lua_pop after installing a lua lib. It seems this corrupted the lua stack. I was having problems prior to making that change, but seems to be working now. Let me know if you are still having problems
quixote
September 3rd, 2005, 10:34 PM
Thanks!
Well, I'm actually still having problems, but there is way more involved than just the XMLTV plugin, I fear. Since I updated to 7-2 I have had many problems and I'm always crashing. For now I'm just waiting with bated breath for the next release.
quixote
September 5th, 2005, 12:46 AM
Everything seem to be working great with the latest release. I have had no problems so far, but I've only tried it a few times. Thanks again to all of you guys.
VaioUserChris
September 5th, 2005, 11:17 PM
Curtis,
This is GREAT! Thank you.
I have a couple of questions. I notice that I can now search for actors, directors, writers, by using the new "credits" field, but is it possible to restrict a search to just directors (i.e. search for someone as a director without a match on actor or writer)? I tried using "credits:director", "credits\\director", "credits.director" and "credits/director" to no avail.
Also "star-rating" is created whenever it appears in the xmltv source, but no value is assigned to that variable. This is really minor to me, but is that something that could be added at some point?
You've done a terrific job with this plugin. Thanks again.
Chris
quixote
September 6th, 2005, 12:37 AM
Hey Chris, will you share your new revisions? :D
VaioUserChris
September 6th, 2005, 12:54 AM
Sure. :D Just give me a few days to clean it up.
Chris
quixote
September 6th, 2005, 01:03 AM
Nice! Thanks!
curtiswren
September 7th, 2005, 08:23 PM
I've updated the zip file at the top of this post to handle searching in a sub field. You can use credits/actor, or just actor. The difference being that if there was another field that had a subfield called actor, it would find that one too. Not likely to happen for a field called actor, but value is used as a subfield for rating and star-rating.
Chris, can you post the piece of xml that has the star-rating? In mine, I get a sublevel called value, and the text is in there.
VaioUserChris
September 8th, 2005, 12:29 AM
Thanks Curtis!
I don't understand it but now the star-rating works perfectly. The searches work great too! :D
I'll be updating the TV Grid script to take advantage of your new plugin.
Thanks again.
Chris
quixote
September 9th, 2005, 05:05 PM
Thanks, Curtis.
curtiswren
September 15th, 2005, 04:40 PM
fixed name in settings
VaioUserChris
September 15th, 2005, 05:42 PM
I appreciate the quick fix. Thanks!!!
Chris
VaioUserChris
September 28th, 2005, 08:10 PM
Hey Curtis,
Quick question. Where does your xmltv plugin pull the channel number from? Someone's having a problems with channel numbers from an australian source and I'm trying to help him out.
It doesn't seem to be pulling that number from the header of the xmltv file <channel id="C6kfbt.zap2it.com">
<display-name>6 KFBT</display-name>
<display-name>6 KFBT NV27420:X</display-name>
<display-name>6</display-name>
<display-name>33 KFBT fcc</display-name>
<display-name>KFBT</display-name>
<display-name>KFBT</display-name>
<display-name>Independent</display-name>
</channel> so I'm guessing it's getting it from program start attribute? <programme start="20050923170000 -0700" stop="20050923173000 -0700" channel="C10klvx.zap2it.com">
Is that correct?
Chris
curtiswren
September 29th, 2005, 04:36 PM
Hi Chris,
I actually am getting the channel from the channel header. Unfortunately, the xmltv spec doesn't have a field dedicated to the channel number. I try to guess it from the display-name field. I use the following algorithm:
If I find a display-name that has a number followed by a space, I use the number for the channel number and the remaining text as the channel name.
If I don't have a display-name that matches that, I look for one that contains just a number and use that if I find it.
If that fails, I don't assign a number to the channel.
There seems to be standard in how these get set. I've even seen one that didn't have a channel id which made the whole file basically useless.
If the number is anywhere in the channel header. let me know where and I'll try to add a case to handle that.
Otherwise, making a script that adds a display-name with '<chnum> <chname>' in the channel headers would fix it.
VaioUserChris
September 29th, 2005, 05:14 PM
Cool. This is an awesome explanation. It should be an easy fix for him.
Chris
vBulletin® v3.7.4, Copyright ©2000-2008, Jelsoft Enterprises Ltd.