xEPGsearch plug-in www

Xlobby plugin development

xEPGsearch plug-in www

Postby art on Fri Jun 15, 2007 3:16 pm

#
##
xEPGsearch plug-in allows searching of xml epg file.
###

To download see this link.

Plug-in lets user search epg by:
Title, Category, Director, Actor, Writer, Guest, Rating

Airing time can be narrowed to:
Future only, Now and Future, or All Air Times

Search types are:
Exact match, Starts with, Contains, Contains words.

Download file includes sample screen/skin, extract "xEPGsearch" folder into your "plugins" folder and "xEPGsearch-skin" into your "skins" folder (not your actual skin).
Plug-in does not require any TV cards or TV software, only valid *.xml file.
Last edited by art on Mon Jul 23, 2007 2:15 pm, edited 3 times in total.
art
 
Posts: 284
Joined: Sat Mar 20, 2004 8:40 am
Location: Allen, TX

Re: xEPGsearch plug-in www

Postby C-moi on Sat Jun 16, 2007 4:45 pm

art,
I try this new plugin but i can't do any search with this plugin.
Did you use a special .dtd file ?
Did the plugin use english words in the internal code and so french guys will never could use this interesting function ?
Could you give us a link to download a epg file that works with your plugin : i would like to see how it works.
Thanks and sorry for my bad english :wink:
Member of XLobby FR Team
Image
C-moi
 
Posts: 164
Joined: Fri Apr 23, 2004 6:58 am
Location: France

Re: xEPGsearch plug-in www

Postby art on Sat Jun 16, 2007 5:20 pm

Hi C-moi,
Here is a link to my xmltv.xml file.
To answer your questions:
No, I didn't use any special dtd file, only the one that comes with xmltv.exe
No, there are no specific English only words in the code.
And don't worry about your English either, it's better than you think...
Now let me ask you - do you have any log files in plugins\xEPGsearch folder? What does the "status" variable says? What is the name of your *.xml file and if other than xmltv.xml did you change it in the setup for the plug-in? Also, can you post your epg file, so I could check it out and see if I can get it to work.
Thanks.

EDIT: there was a small bug (typo) in the "All Air Times" time setting ('Air' was missing), should be fixed now.
art
 
Posts: 284
Joined: Sat Mar 20, 2004 8:40 am
Location: Allen, TX

Re: xEPGsearch plug-in www

Postby C-moi on Sun Jun 17, 2007 8:15 am

Hi art,
Many thanks for trying to resolve my problem.
- do you have any log files in plugins\xEPGsearch folder?

no. Only the setup.txt file that contains xmltv
I use your xmltv.xml and i have the same result : the epg is visible on epg screen of your skin but on the menu screen, i see nothing in the xepgsearch category when i try to search

What does the "status" variable says?

Ready

What is the name of your *.xml file and if other than xmltv.xml did you change it in the setup for the plug-in?

I try with several epg files : tvguide.xml, teletruc.xml and xmltv.xml
Yes i change the name of the epg in the setup of the plugin

Also, can you post your epg file, so I could check it out and see if I can get it to work.

http://france.xlobby.com/temp/teletruc.rar
http://france.xlobby.com/temp/tvguide.rar
http://france.xlobby.com/temp/xmltv.zip

When i test the search command (in the events setup) i have an error
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.MissingMethodException: Method not found: 'System.String XPluginSDK.XPluginHelper.ConvertVariables(System.String)'.
at xEPGsearch.xEPGsearch.search(String command)
at xEPGsearch.xEPGsearch.Execute(String command)
at xlobby2.Command.Run(Control control)
at xlobby2.Setup.button56_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


If you need the whole message, i can copy it.

Many thanks.
Member of XLobby FR Team
Image
C-moi
 
Posts: 164
Joined: Fri Apr 23, 2004 6:58 am
Location: France

Re: xEPGsearch plug-in www

Postby art on Sun Jun 17, 2007 3:01 pm

C-moi,
I have good news and a bad one.
I downloaded your xmltv.xml and tvguide.xml files. I'm not sure how you use your xmltv.xml - it does not have "start" and "stop" attributes in the <programme> tag ex:
<programme channel="1:0:1:1AF9:3FE:1:C00000:0:0:0:">
so, the xlobby was able to load it somehow (but it only shows channels, no programs), plug-in started the search, but error out due to that - sorry, but you will not be able to use this file
On the other hand tvguide.xml was perfect. I had no problems loading it and searching. Here are 2 screens with my test skin:
here I searched for "les sumos" and found 3 matches
lessumos.jpg

and here for "magazine" as a category and found 799 matches
magazine.jpg


So, the good news was that your file is searchable with my plug-in, but the bad is that as far as the error goes, I'm a little confused. You are using my test skin, right? From the error, it looks like "Search" command is missing (or has incorrect) parameter and XL can't execute it - it should be the name of the category "xepgsearch", if you could double check that and let me know and I'll look at the code and double check the the 'search' command.

EDIT: Well, I took a second look at the code, I can't really see anything that would jump at me. I added some error handling code, so maybe this will help determine what the problem is. If you could try downloading the plug-in again.
EDIT II: What is the version/date of your xlobby and XPluginSDK.dll?
art
 
Posts: 284
Joined: Sat Mar 20, 2004 8:40 am
Location: Allen, TX

Re: xEPGsearch plug-in www

Postby C-moi on Sun Jun 17, 2007 6:37 pm

Art, thanks for your reply !
I use your skin with the tvguide.xml now
I download the new version of your plugin and now i have an error :
Code: Select all
17/06/2007 20:22:04: Method not found: 'System.String XPluginSDK.XPluginHelper.ConvertVariables(System.String)'.
@xlExecute


xlobby2.exe (05-09-2006)
1.0.2443.23075

XPluginSDK.dll
1.0.1937.25036
Could you tell me the version of xlobby2.exe and XPluginSDK.dll you use ?
Thanks Art
Member of XLobby FR Team
Image
C-moi
 
Posts: 164
Joined: Fri Apr 23, 2004 6:58 am
Location: France

Re: xEPGsearch plug-in www

Postby art on Sun Jun 17, 2007 7:01 pm

Hey C-moi, thanks for testing!
As I suspected, this error code didn't do much .... Anyway, my versions are:
xlobby - 1.0.2613.31320 (2007-03-04)
sdk 1.0.2612.4380
Our versions are quite different, but I really don't remember if Steven made any changes during that time.
One more question - do you get any errors when changing "time", "field", or "type"?

EDIT: I just tested version from 2006-08-24 and it worked as well, aside from differences in category display... Can you zip-up and post your xl.exe, sdk.dll and *sdk.xml, I'll try to test with your setup.
art
 
Posts: 284
Joined: Sat Mar 20, 2004 8:40 am
Location: Allen, TX

Re: xEPGsearch plug-in www

Postby C-moi on Sun Jun 17, 2007 8:17 pm

Hi Art,
One more question - do you get any errors when changing "time", "field", or "type"?

no error ! only an error message when i try to search

Can you zip-up and post your xl.exe, sdk.dll and *sdk.xml, I'll try to test with your setup.

http://france.xlobby.com/temp/xlobby2.rar

I think i will search a newer version of xlobby in my archive !

I try with another PC
xlobby2.exe (1.0.2613.31320)
XPluginSDK.dll (1.0.2612.4380)
it's better : in the status area there is no more error and nox i can read :
Current critera : nuit
Search result : 0 matches found
Search ended

I made a
Search Type : Contains words
Search Time : All times
Search Field : Title

But i can read in my epg sreen the word "nuit" in several areas so the search result "0 matches found" is not the reality.
Thanks Art
Last edited by C-moi on Sun Jun 17, 2007 8:56 pm, edited 1 time in total.
Member of XLobby FR Team
Image
C-moi
 
Posts: 164
Joined: Fri Apr 23, 2004 6:58 am
Location: France

Re: xEPGsearch plug-in www

Postby art on Sun Jun 17, 2007 8:39 pm

Yes, it's your sdk - I'm getting the same error, it's just too old (Dec 2005), but it's good lesson for me - I need try to find some "safe" way of coding for those older skd's out there :wink: . Anyway try finding something from maybe Aug 2006, it should work with hopefully no problems, and I'll work on my 'safe' coding...
art
 
Posts: 284
Joined: Sat Mar 20, 2004 8:40 am
Location: Allen, TX

Re: xEPGsearch plug-in www

Postby C-moi on Sun Jun 17, 2007 9:03 pm

Sorry Art,
i will update my version of xlobby2 (exe and sdk). I will try asa...
Many thanks !
Member of XLobby FR Team
Image
C-moi
 
Posts: 164
Joined: Fri Apr 23, 2004 6:58 am
Location: France

Re: xEPGsearch plug-in www

Postby art on Mon Jun 18, 2007 2:18 pm

C-moi wrote:Current critera : nuit
Search result : 0 matches found
Search ended

I made a
Search Type : Contains words
Search Time : All times
Search Field : Title

But i can read in my epg sreen the word "nuit" in several areas so the search result "0 matches found" is not the reality.
Thanks Art


C-moi, sorry, I forgot to reply to this problem. If your ‘time’ shows “All Times” that’s an old ver of the plug-in with a typo I mentioned in one of my prior posts. This typo will always show 0 matches. Fixed version should show “All Air Times” (‘Air’ was missing) this should work, but just in case, I’ll double check this problem when I get back home and i'll let you know.

EDIT: OK I just did a search for nuit and I got 28 matches, hopefully the number you were looking for. Anyway, like I said, try re-downloading the plug-in.
art
 
Posts: 284
Joined: Sat Mar 20, 2004 8:40 am
Location: Allen, TX

Re: xEPGsearch plug-in www

Postby homepc on Mon Jun 18, 2007 6:25 pm

I love this idea, but I cant get it to work for me.

The log file states:

Object reference not set to an instance of an object.
@getcurrentchannel

Do I have something wrong? Where should the xmltv.xml file be located in your demo skin?

thanks
ray
homepc
 
Posts: 251
Joined: Tue Mar 20, 2007 1:27 pm
Location: Delaware

Re: xEPGsearch plug-in www

Postby C-moi on Mon Jun 18, 2007 7:59 pm

Hi Art,
I change xlobby2.exe and SDK for a newer version and all works ! :D
Thanks Art for your patience !
Is it possible to have the word used by your plugin in a .ini ou .xml file in the EPGsearch directory ? so it would be possible to translate very easily the options for displaying informations from your plugin (Contains, All Air Times, Title, Search results, Search ended are integrated in your plugin i think)
We use xltv plugin with our tv cards and we use several epg in the same time (favorites channels) so is it possible to change the epg source from xlobby directly without lauching setup / plugins / EpgSearch / Configure ... but with several buttons (the name of the epg are always the same)
Thanks Art !
Member of XLobby FR Team
Image
C-moi
 
Posts: 164
Joined: Fri Apr 23, 2004 6:58 am
Location: France

Re: xEPGsearch plug-in www

Postby art on Tue Jun 19, 2007 1:18 am

homepc,
It looks like you don't have a functioning epg in xlobby(?), error happened when plug-in was trying to get the channel ID from the epg in xlobby. Your xmltv.xml should be in "xlobby\xmltv" folder, what is the location of your file? If you're using my test skin, there is a screen "epg" check this screen and see if you can see channels, programs, etc...

C-moi,
Let me see what I can do, right now my time is a little bit limited, so it may take me few days to get to it.
art
 
Posts: 284
Joined: Sat Mar 20, 2004 8:40 am
Location: Allen, TX

Re: xEPGsearch plug-in www

Postby homepc on Tue Jun 19, 2007 1:36 am

Thanks C-moi,

I think you are right. I do have an EPG in my xlobby, but right now it is not functioning correctly. I changed tuner cards and I'm haveing trouble with the new tuner. It did mess up my EPG in xlobby. After I get the tuner card straightened out, I will try your EPGSearch again. I cant wait! I have wanted a searchable EPG for a long time!! By the way, after you search the EPG and see the results, can you click on it and get to the channel as long as its the current program? Can you record from the results? Or is it just a viewable listing?


Thanks again....great work!!
homepc
 
Posts: 251
Joined: Tue Mar 20, 2007 1:27 pm
Location: Delaware

Next

Return to Plugins

Who is online

Users browsing this forum: Exabot [Bot] and 1 guest

cron