[RELEASE] XMLTV - EPG TV Guide Listings Script
#46
Hi denhams.

Could your epg sript do that?: http://forum.xbmc.org/showpost.php?p=723935&postcount=1

For example, launching the selected channel through its url in the upnp server.

Thanks and greetings.
Reply
#47
rivo Wrote:Hi denhams.

Could your epg sript do that?: http://forum.xbmc.org/showpost.php?p=723935&postcount=1

For example, launching the selected channel through its url in the upnp server.

Thanks and greetings.

Hi, the plugin will display XMLTV listings (but nothing from UPNP). It can launch a plugin to watch TV (e.g. via tvheadend) but not on a channel per channel basis (the problem being how to map an XMLTV channel to a tvheadend, or whatever, channel).

Stephen.
Reply
#48
Ok, I understand.
Thank you.
Reply
#49
Hi Stephen-

First, thanks for the work on this EPG...
I'm running Dharma 10.1 on a Windows XP SP3 PC and trying to install the "script.program.xmltv-0.1.5.zip" version.
The add-on installs OK , but I have problems with reading the xmltv.xml file.
I have the correct path to the XMLTV folder set and have a xmltv.xml file in it.
I have validated the XML file with the XMLTV.exe program.
The progress bar pauses at 50% and then the screen goes blank after a few more seconds.
I use mc2xml with the legacy microsoft service. I am grabbing approx 60 channels for a 72 hour time period.

Here's a copy of the xml file and the xbmc log file:
http://rapidshare.com/files/456627000/xmltv.zip

Looking in the log file, it looks like there is a problem with an end of file error

Thanks in advance
Bob
Reply
#50
nosweat Wrote:Here's a copy of the xml file and the xbmc log file:
http://rapidshare.com/files/456627000/xmltv.zip

Thanks, Bob. Looks like the XML file is too big to be processed in one go. Try splitting it per channel:

Code:
cat xmltv.xml | tv_sort | tv_split --output ~/.xbmc/userdata/addon_data/script.program.xmltv/xmltv/%channel%.xml

That worked for me.

Stephen.
Reply
#51
I checked my xmltv channel file and it's OK using tv_validate_file. I verified the path in the context menu of the 0.1.5 version of the script. I checked the xbmc.log and saw this:

09:58:00 T:139747126355712 M:4069695488 NOTICE: Cannot read /home/patrick/xmltv/channels/I20625.labs.zap2it.com.xml
09:58:00 T:139747126355712 M:4069695488 NOTICE: Traceback (most recent call last):
09:58:00 T:139747126355712 M:4069695488 NOTICE: File "/home/patrick/.xbmc/addons/script.program.xmltv/default.py", line 161, in getChannels
09:58:00 T:139747126355712 M:4069695488 NOTICE: self.channels = read_channels(open(xmltvfile, xmltvfile))
09:58:00 T:139747126355712 M:4069695488 NOTICE: ValueError: mode string must begin with one of 'r', 'w', 'a' or 'U', not '/home/patrick/xmltv/channels/I20625.labs.zap2it.com.xml'

Here's what that file looks like:
Code:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE tv SYSTEM "xmltv.dtd">

<tv source-info-url="http://www.schedulesdirect.org/" source-info-name="Schedules Direct" generator-info-name="XMLTV/$Id: tv_grab_na_dd.in,v 1.80 2010/03/28 02:00:39 knowledgejunkie Exp $" generator-info-url="http://www.xmltv.org/">
  <channel id="I20625.labs.zap2it.com">
    <display-name>312 SHOWBP</display-name>
    <display-name>312 SHOWBP CA61301:X</display-name>
    <display-name>312</display-name>
    <display-name>SHOWBP</display-name>
    <display-name>Showtime Beyond (Pacific)</display-name>
    <display-name>PAY</display-name>
  </channel>
  <programme start="20110709003000 -0800" stop="20110709020000 -0800" channel="I20625.labs.zap2it.com">
    <title lang="en">Wushu Warrior</title>
    <desc lang="en">In 19th-century China, a man unwittingly kidnaps the daughter of a brutal lord (Matt Frewer).</desc>
    <credits>
      <actor>Matt Frewer</actor>
    </credits>
    <date>2008</date>
    <category lang="en">Action</category>
    <category lang="en">Martial arts</category>
    <category lang="en">Movie</category>
    <length units="minutes">85</length>
    <episode-num system="dd_progid">MV00266049.0000</episode-num>
    <audio>
      <stereo>stereo</stereo>
    </audio>
    <rating system="advisory">
      <value>Adult Situations</value>
    </rating>
    <rating system="advisory">
      <value>Violence</value>
    </rating>
    <rating system="MPAA">
      <value>PG-13</value>
    </rating>
  </programme>
...
</tv>

I see the progress bar but no listings appear. Any ideas?
Reply
#52
mythboy Wrote:I see the progress bar but no listings appear. Any ideas?

Yes, it's a bug. Thanks for reporting it. Please try:

http://sourceforge.net/projects/xbmc-xml...p/download

Regards,

Stephen.
Reply
#53
Awesome! You da man! It works great.
Reply
#54
Quick question: how do I add tvheadend to launch the channel when I press enter on the channel?

I've already configured tvheadend and can view my channels.. the only problem I had with xbmc-pvr is that the tvheadend epg was not populating so I am relying on your script for the EPG info and tvheadend to view the channel.
Reply
#55
mythboy Wrote:Quick question: how do I add tvheadend to launch the channel when I press enter on the channel?

I've already configured tvheadend and can view my channels.. the only problem I had with xbmc-pvr is that the tvheadend epg was not populating so I am relying on your script for the EPG info and tvheadend to view the channel.

Have a look at part 3 of the README which is in the zip file. That will allow you to bring up the tvheadend channel list where you select the one you want. There is no way of launching a channel directly. The example assumes tvheadend is on the same box as XBMC. If not, change 127.0.0.1 to whatever the IP is where tvheadend is hosted.

Stephen.
Reply
#56
Hoping someone could help me... I'm using ms2xml to fetch epg info... located in c:\xmltv
i have xbmc script pointing to xmltv dir... but when I load it sits at reading tv listings... and nothing happens...

I'm using hdhomerun and i'm hoping to use this to setup an epg for it...
any info would be appreciated
thanks
Image Lunatixz - Kodi / Beta repository
Image PseudoTV - Forum | Website | Youtube | Help?
Reply
#57
Lunatixz Wrote:Hoping someone could help me... I'm using ms2xml to fetch epg info... located in c:\xmltv
i have xbmc script pointing to xmltv dir... but when I load it sits at reading tv listings... and nothing happens...

I'm using hdhomerun and i'm hoping to use this to setup an epg for it...
any info would be appreciated
thanks

Check you have the latest version:

http://sourceforge.net/projects/xbmc-xml...p/download

Also, check your XML file is valid. See http://wiki.xmltv.org/index.php/XmltvValidation .

If you are still having problems the please post the output from the xbmc.log.

Stephen.
Reply
#58
Hello, denhams. Your script was exactly what I,ve been looking for to get quick epg from within xbmc. However I am encountering a stange problem everytime I use it. It only runs once per script usage. I am using a validated xml file and latest version of script and it is showing all of the xml program info. Then when I exit it using escape key ( backspace doesn't exit in this script), the next time I use it I get no response from clicking on the script. If I close xbmc and restart it, it will work again but only one time again as previous, till I close and open xbmc again, etc, etc, etc. Any help will be appreciated.

Thanks for your excellent work, friedfarmer
Reply
#59
I checked my xmltv file and it is vaild... my xbmc debug logs shows this:
16:20:11 T:7912 M:4294967295 NOTICE: Traceback (most recent call last):
16:20:11 T:7912 M:4294967295 NOTICE: File "C:\Users\test\AppData\Roaming\XBMC\addons\script.program.xmltv\default.py", line 194, in getChannels
16:20:11 T:7912 M:4294967295 NOTICE: self.programs = pickle.load(f)
16:20:11 T:7912 M:4294967295 NOTICE: File "special://xbmc/system/python/Lib\pickle.py", line 1390, in load
16:20:11 T:7912 M:4294967295 NOTICE: return Unpickler(file).load()
16:20:11 T:7912 M:4294967295 NOTICE: File "special://xbmc/system/python/Lib\pickle.py", line 872, in load
16:20:11 T:7912 M:4294967295 NOTICE: dispatch[key](self)
16:20:11 T:7912 M:4294967295 NOTICE: File "special://xbmc/system/python/Lib\pickle.py", line 894, in load_eof
16:20:11 T:7912 M:4294967295 NOTICE: raise EOFError
16:20:11 T:7912 M:4294967295 NOTICE: EOFError
16:20:11 T:7912 M:4294967295 NOTICE: Failed to read programs from D:\Users\test\Dropbox\xmltv\xmltv\xmltv.xml
Image Lunatixz - Kodi / Beta repository
Image PseudoTV - Forum | Website | Youtube | Help?
Reply
#60
Please can you try deleting:

C:\Users\test\AppData\Roaming\XBMC\userdata\addon_data\script.program.xmltv\*.dmp

Stephen.
Reply

Logout Mark Read Team Forum Stats Members Help
[RELEASE] XMLTV - EPG TV Guide Listings Script0