[RELEASE] TV Guide - with XMLTV and streaming support

  Thread Rating:
  • 10 Votes - 4.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
TheJordan Offline
Junior Member
Posts: 3
Joined: Apr 2012
Reputation: 0
Post: #136
I made sure that all of my channels were populating the tvguide.xml, and that seems to have helped a bit, but created a different error:
Code:
11:51:09 T:1716  NOTICE: [script.tvguide] Caching XMLTV file...
11:51:09 T:1716   ERROR: Traceback (most recent call last):
11:51:09 T:1716   ERROR:   File "C:\Users\John Q. Public\AppData\Roaming\XBMC\addons\script.module.buggalo\lib\buggalo.py", line 68, in wrap_in_try_except
11:51:09 T:1716   ERROR:     fn(*args, **kwargs)
11:51:09 T:1716   ERROR:   File "C:\Users\John Q. Public\AppData\Roaming\XBMC\addons\script.tvguide\gui.py", line 81, in run
11:51:09 T:1716   ERROR:     source = src.instantiateSource(ADDON)
11:51:09 T:1716   ERROR:   File "C:\Users\John Q. Public\AppData\Roaming\XBMC\addons\script.tvguide\source.py", line 783, in instantiateSource
11:51:09 T:1716   ERROR:     return activeSource(addon, cachePath)
11:51:09 T:1716   ERROR:   File "C:\Users\John Q. Public\AppData\Roaming\XBMC\addons\script.tvguide\source.py", line 669, in __init__
11:51:09 T:1716   ERROR:     os.rename(tempFile, self.xmlTvFile)
11:51:09 T:1716   ERROR: WindowsError: [Error 183] Cannot create a file when that file already exists

Bah! I'm going to give up until I hear back from someone. I installed 1.3.1 from git, and now I'm getting:
Code:
12:08:42 T:5624   ERROR: Traceback (most recent call last):
12:08:42 T:5624   ERROR:   File "C:\Users\John Q. Public\AppData\Roaming\XBMC\addons\script.tvguide\source.py", line 202, in updateChannelAndProgramListCaches
12:08:42 T:5624   ERROR:     for item in self.getDataFromExternal(date, progress_callback):
12:08:42 T:5624   ERROR:   File "C:\Users\John Q. Public\AppData\Roaming\XBMC\addons\script.tvguide\source.py", line 700, in getDataFromExternal
12:08:42 T:5624   ERROR:     result = Program(channel, elem.findtext('title'), self._parseDate(elem.get('start')), self._parseDate(elem.get('stop')), description, imageSmall=icon)
12:08:42 T:5624   ERROR:   File "C:\Users\John Q. Public\AppData\Roaming\XBMC\addons\script.tvguide\source.py", line 753, in _parseDate
12:08:42 T:5624   ERROR:     dateStringWithoutTimeZone = dateString[:-6]
12:08:42 T:5624   ERROR: TypeError: 'NoneType' object is unsubscriptable
(This post was last modified: 2012-04-05 18:12 by TheJordan.)
find quote
twinther Offline
Fan
Posts: 308
Joined: Sep 2004
Reputation: 10
Location: Denmark
Post: #137
Hi TheJordan,
Can you send me your XMLTV file, it looks like the date format is different from what I have seen earlier.
It should be an easy fix..
Br.
Tommy
(2012-04-05 12:38)spoyser Wrote:  Can you point me to the source code, do you know which DLL the fix resides in as I as thinking I could just overwite that one file (once I've built it)?
(I can't believe the XBMC developers released Eden with this issue in it, especially when they were aware of it and had fixed it!)
I think jmarshallnz thought it was too risky to fix before Eden. I think the partial fix went in just one or two days before Eden final.

You can get the source code at github: https://github.com/xbmc/xbmc
This wiki page is probably a good starting point for compiling instructions: http://wiki.xbmc.org/index.php?title=Category:Compiling Smile

Br.
Tommy
(This post was last modified: 2012-04-06 19:55 by twinther.)
find quote
twinther Offline
Fan
Posts: 308
Joined: Sep 2004
Reputation: 10
Location: Denmark
Post: #138
Hi all,
The TV Guide was accidentally update to 1.3.2 instead of 1.3.1 in the official XBMC repository last night. I think 1.3.2 works fairly well but I'm not done testing it yet.
If you are having problems your best bet is probably to blacklist the 1.3.2 release and install the 1.3.1 zip from here:
http://tommy.winther.nu/xbmc/zip.php?add...pt.tvguide

1.3.2 contains an initial version of the Rapier skin for the TV Guide as well as some small fixes.
The Rapier skin is not final and there are some problems with it still, such as video overlay and background pictures with the YouSee source.

Br.
Tommy
find quote
twinther Offline
Fan
Posts: 308
Joined: Sep 2004
Reputation: 10
Location: Denmark
Post: #139
Version 1.3.4 was uploaded the other day, I think it's working fairly well.
If you are using XMLTV (perhaps from a SMB:// share) and have problems, please let me know.

Also if you are using the metropolis skin the tvguide doesn't work. Metropolis has it's own skin for the tv guide and a lot was change in 1.3.x.
I'll contact Stoli and find a solution.

Br.
Tommy
find quote
Steveb Offline
Fan
Posts: 374
Joined: Oct 2009
Reputation: 11
Location: Adelaide, Australia
Post: #140
(2012-04-16 18:45)twinther Wrote:  Also if you are using the metropolis skin the tvguide doesn't work. Metropolis has it's own skin for the tv guide and a lot was change in 1.3.x.
I'll contact Stoli and find a solution.

Hi twinther, I've posted a update for the Metropolis TVguide skin in the [WIP] Metropolis skin thread http://forum.xbmc.org/showthread.php?tid...pid1078364

If you like you could add it to the addon skin directory but maybe sort that out with stoli. Wink

Cheers.

EDIT I see that you updated to a 12hour time format, I was wondering if its possible to remove the seconds section. (01:30:00 PM)

[Image: TVguide01.png]
(This post was last modified: 2012-04-17 06:02 by Steveb.)
find quote
twinther Offline
Fan
Posts: 308
Joined: Sep 2004
Reputation: 10
Location: Denmark
Post: #141
Cool thanks. I'll let stoli decide what to do.
The skin files in the skin overrides the ones in the addon, so stoli will have to do something to fix it anyway Smile

I'll try to remove the seconds in the next release. I'm using the region information that XBMC provides, but I should be able to strip the seconds somehow.
find quote
Silverlock Offline
Junior Member
Posts: 20
Joined: Dec 2010
Reputation: 0
Post: #142
The buttons in flyout menu still highlight properly. Different skins have no effect. Rolling back to 1.2.2 however does highlight the selected program in the program grid, but going forward to 1.3.0 or higher makes it vanish again. Any thoughts?

XBMC Eden / Maverick Meerkat (Ubuntu 10.10)
Acer AspireRevo 3610 (Atom N330/ION/4GB RAM+500GB HD), PS3 BD Remote, HDMI to Vizio M320VT
find quote
twinther Offline
Fan
Posts: 308
Joined: Sep 2004
Reputation: 10
Location: Denmark
Post: #143
Hi, you should test with the lastest 1.3.x (1.3.4 at the moment).
I'm not really sure what's causing the problem. Can you reproduce with 1.3.4 and confluence skin?
Br.
Tommy
find quote
Zellig Offline
Junior Member
Posts: 39
Joined: Apr 2012
Reputation: 0
Post: #144
This works great with HDHomerun for both OTA and CAM. Thanks for a GREAT add-on!

Two questions:

1. My CAM scan comes back with stuff like Channel 101.1, 101.546, etc.. The guide has no clue what these are, although I see that I can associate them with a particular TV Guide channel. But it will take a while to do it manually.

Is there an easier way to match the CAM channel numbers to the TV Guide information? (I am on TWC in Southern California.)

2. Also (and this has nothing to do with the guide, but maybe someone knows the answer), is there a way to use the Channel +/- buttons on the MCE remote control to flip through channels, instead of going thought the guide? Same for the number keys on the remote, to input channel numbers directly.
find quote
Zellig Offline
Junior Member
Posts: 39
Joined: Apr 2012
Reputation: 0
Post: #145
I just edited the channels in HDHomerun manually.

But now another question:

Is there n easy way to hide channels in TV Guide which are not available for viewing, or channels I simply do not want to keep in the guide (like shopping channels, etc.)?
find quote
danz0l Offline
Fan
Posts: 645
Joined: Jul 2010
Reputation: 1
Post: #146
I love this addon but not sure if i have found a bug. Does it not cache the xmltv.xml file as my local machine only loads the xmltv.xml on changes (its on that machine), yet one on a smb share, pointing to that file on the network, it seems to insist on loading it each time the plugin runs. Is that how it should work as it kinda slows the guide loading down considerably through a network share.

-= My Media Centre =-
ACER Revo R3610 | x2 1.5TB WD Caviar Green SATA Hard Drives (WD15EADS) | x2 2.0TB WD Caviar Green SATA Hard Drive ( WD15EARS ) | 3.5in Black eSATA USB Trayless SATA External Hard Drive Enclosure | Emprex 3009URF Wireless MCE Remote Control | XBMCLive Dharma Beta1
find quote
twinther Offline
Fan
Posts: 308
Joined: Sep 2004
Reputation: 10
Location: Denmark
Post: #147
Zellig, yeah you can hide the channels by opening the context menu and choosing channels near the bottom.
In this window you can reorder and change visibility.

danz0l, yeah it's a bad compromise I had to make. I have to copy the xmltv file each time as I can't check if it was modified on the network share. I'm considering only copying it once a day from the network share, but this might also by annoying if it's updated during the day.
find quote
Cirip Offline
Junior Member
Posts: 15
Joined: Dec 2009
Reputation: 0
Post: #148
Hi all!

I am totally newbie at xbmc.
I use XBMC Eden on win7 64bit.

I use the xmltv source but I have a problem:

This is the log:

20:28:26 T:1764 ERROR: CLocalizeStrings::ClearBlock: Trying to clear non existent block C:\Users\Cirip\AppData\Roaming\XBMC\addons\script.tvguide
20:28:26 T:1764 DEBUG: Activating window ID: 13000
20:28:26 T:1764 DEBUG: ------ Window Deinit (MyPrograms.xml) ------
20:28:26 T:1764 DEBUG: ------ Window Init (C:\Users\Cirip\AppData\Roaming\XBMC\addons\script.tvguide\resources\skins\Defau​lt\720p\script-tvguide-main.xml) ------
20:28:26 T:1764 INFO: Loading skin file: C:\Users\Cirip\AppData\Roaming\XBMC\addons\script.tvguide\resources\skins\Defaul​t\720p\script-tvguide-main.xml
20:28:26 T:1764 DEBUG: unable to load C:\Users\Cirip\AppData\Roaming\XBMC\addons\script.tvguide\resources\language\Hun​garian\strings.xml: Failed to open file at line 0
20:28:27 T:3572 DEBUG: Previous line repeats 8 times.
20:28:27 T:3572 NOTICE: Settings changed: False
20:28:27 T:3572 NOTICE: [script.tvguide] Caching XMLTV file...
20:28:28 T:3572 DEBUG: [script.tvguide] Using source: <class 'source.XMLTVSource'>
20:28:28 T:1576 DEBUG: [script.tvguide] Updating caches...
20:28:28 T:1576 ERROR: Traceback (most recent call last):
20:28:28 T:1576 ERROR: File "C:\Users\Cirip\AppData\Roaming\XBMC\addons\script.tvguide\source.py", line 208, in updateChannelAndProgramListCaches
20:28:28 T:1576 ERROR: for item in self.getDataFromExternal(date, progress_callback):
20:28:28 T:1576 ERROR: File "C:\Users\Cirip\AppData\Roaming\XBMC\addons\script.tvguide\source.py", line 774, in parseXMLTV
20:28:28 T:1576 ERROR: result = Program(channel, elem.findtext('title'), parseXMLTVDate(elem.get('start')), parseXMLTVDate(elem.get('stop')), description, imageSmall=icon)
20:28:28 T:1576 ERROR: File "C:\Users\Cirip\AppData\Roaming\XBMC\addons\script.tvguide\source.py", line 754, in parseXMLTVDate
20:28:28 T:1576 ERROR: dateStringWithoutTimeZone = dateString[:-6]
20:28:28 T:1576 ERROR: TypeError: 'NoneType' object is unsubscriptable
20:28:28 T:1576 INFO: Loading skin file: DialogOK.xml
20:28:28 T:1764 DEBUG: ------ Window Init (DialogOK.xml) ------
20:28:32 T:1764 DEBUG: CApplication::ProcessMouse: trying mouse action leftclick
20:28:32 T:1764 DEBUG: ------ Window Deinit (DialogOK.xml) ------
20:28:32 T:3116 INFO: Scriptresult: Success
20:28:32 T:3116 INFO: Scriptresult: Waiting on thread 1576
20:28:32 T:1764 DEBUG: Activating window ID: 10001
20:28:32 T:1764 DEBUG: ------ Window Deinit (C:\Users\Cirip\AppData\Roaming\XBMC\addons\script.tvguide\resources\skins\Defau​lt\720p\script-tvguide-main.xml) ------
20:28:32 T:1764 DEBUG: ------ Window Init (MyPrograms.xml) ------
20:28:32 T:1764 INFO: Loading skin file: MyPrograms.xml
20:28:32 T:1764 WARNING: Skin has invalid include: Window_OpenClose_Animation
20:28:32 T:1764 DEBUG: CGUIMediaWindow::GetDirectory (addons://sources/executable/)
20:28:32 T:1764 DEBUG: ParentPath = [addons://sources/executable/]
20:28:32 T:3832 DEBUG: Thread Background Loader start, auto delete: 0
20:28:32 T:1992 DEBUG: Previous line repeats 1 times.
20:28:32 T:1992 DEBUG: Thread Background Loader 1992 terminating
20:28:32 T:3832 WARNING: XFILE::CFileFactory::CreateLoader - Unsupported protocol(addons) in addons://more/executable.tbn
20:28:32 T:3832 DEBUG: Thread Background Loader 3832 terminating
20:28:32 T:3116 INFO: Python script stopped
find quote
twinther Offline
Fan
Posts: 308
Joined: Sep 2004
Reputation: 10
Location: Denmark
Post: #149
Hi Cirip,
There's a problem with parsing the dates in your xmltv file. Can you send it to me? - then I can investigate.
Br.
Tommy
find quote
danz0l Offline
Fan
Posts: 645
Joined: Jul 2010
Reputation: 1
Post: #150
(2012-04-20 19:38)twinther Wrote:  danz0l, yeah it's a bad compromise I had to make. I have to copy the xmltv file each time as I can't check if it was modified on the network share. I'm considering only copying it once a day from the network share, but this might also by annoying if it's updated during the day.

AH yes understood, as the date and time stamp wouldnt be available through the share ?

On another note, is there anyway to get the xmltv perl scripts used by tvheadend to generate a xml compatible file for this plugin ? At the moment i'm manually doing it from windows for my linux machines using XMLTV Gui and it works perfectly. But would prefer something i could cron run on linux if possible. Anyone any ideas ?

-= My Media Centre =-
ACER Revo R3610 | x2 1.5TB WD Caviar Green SATA Hard Drives (WD15EADS) | x2 2.0TB WD Caviar Green SATA Hard Drive ( WD15EARS ) | 3.5in Black eSATA USB Trayless SATA External Hard Drive Enclosure | Emprex 3009URF Wireless MCE Remote Control | XBMCLive Dharma Beta1
(This post was last modified: 2012-04-21 16:37 by danz0l.)
find quote
Post Reply