Kodi Community Forum
Release TV Guide - with XMLTV and streaming support - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+---- Forum: Program Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=151)
+---- Thread: Release TV Guide - with XMLTV and streaming support (/showthread.php?tid=120377)



RE: [RELEASE] TV Guide - TheJordan - 2012-04-05

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



RE: [RELEASE] TV Guide - twinther - 2012-04-06

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




RE: [RELEASE] TV Guide - twinther - 2012-04-09

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?addon=script.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


RE: [RELEASE] TV Guide - twinther - 2012-04-16

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


RE: [RELEASE] TV Guide - User 55003 - 2012-04-17

(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=99317&pid=1078364#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


RE: [RELEASE] TV Guide - twinther - 2012-04-17

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.



Any ideas why the program grid no longer highlights the current selection? - Silverlock - 2012-04-18

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?


RE: [RELEASE] TV Guide - twinther - 2012-04-19

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


RE: [RELEASE] TV Guide - Zellig - 2012-04-19

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.


RE: [RELEASE] TV Guide - Zellig - 2012-04-20

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.)?


RE: [RELEASE] TV Guide - danz0l - 2012-04-20

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.


RE: [RELEASE] TV Guide - twinther - 2012-04-20

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.


RE: [RELEASE] TV Guide - Cirip - 2012-04-20

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\Default\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\Default\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\Hungarian\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:TonguerocessMouse: 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\Default\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



RE: [RELEASE] TV Guide - twinther - 2012-04-21

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


RE: [RELEASE] TV Guide - danz0l - 2012-04-21

(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 ?