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 - with XMLTV and streaming support - twinther - 2013-01-19

Hi WoodenTiger,
It sounds like your xmltv file isn't up to date, ie. it doesn't contain any programs for the current view.
Try with another file or if fx you know there are programs for yesterday or tomorrow you can navigate to it with the cursor keys.

Br.
Tommy


RE: [RELEASE] TV Guide - with XMLTV and streaming support - WoodenTiger - 2013-01-19

(2013-01-19, 20:32)twinther Wrote: Hi WoodenTiger,
It sounds like your xmltv file isn't up to date, ie. it doesn't contain any programs for the current view.
Try with another file or if fx you know there are programs for yesterday or tomorrow you can navigate to it with the cursor keys.

Br.
Tommy

Hello Tommy,

I have tried loading todays xmltv.xml from Schedules Direct, but I still don't get any info to populate the EPG other than the channel names...
I've tried both using the xmltv.xml file with UTC times and with CST local times, loading a 72 hour timeframe.

the xmltv.xml file is being populated with programme information for today at this very moment:

<programme start="20130120033000 +0000" stop="20130120040000 +0000" channel="I152.62081.tmsdatadirect.com">

and

<programme start="20130119143000 -0600" stop="20130119144500 -0600" channel="I102.74931.tmsdatadirect.com">

but still no program data shows on the EPG.

and the XBMC.log only states a few dozen lines like these:

14:54:37 T:3364 NOTICE: Database.eventLoop() >>>>>>>>>> processing command: _getEPGView
14:54:37 T:3364 NOTICE: Database.eventLoop() >>>>>>>>>> processing command: _getEPGView
14:54:37 T:3364 NOTICE: Database.eventLoop() >>>>>>>>>> processing command: _getEPGView

Any thoughts?


RE: [RELEASE] TV Guide - with XMLTV and streaming support - twinther - 2013-01-20

Can you PM me the file your are loading, I'll give it a try.
Br.
Tommy


RE: [RELEASE] TV Guide - with XMLTV and streaming support - WoodenTiger - 2013-01-20

Hello Tommy,

I got the plugin to work, but I figured it turns out that once the plugin database (source.db) has been loaded with something it does not care you provide a new XMLTV.xml file, it just keeps using whatever old data it already has, even tho have the "Update the program information on XBMC startup" option checked, and I restart the XBMC the source.db file remains unchanged.

Yet if I manually remove the source.db file and reload the XBMC then the new xmltv.xml file gets loaded onto the source.db showing all programming where it should be. So my guess is this is a bug?

On the other hand, shouldn't there be like a "reload" button somewhere in the UI, or in the plugin settings screen, so that the old source.db gets cleared, and new data gets loaded without having to restart XMBC?

That would be mighty helpful.


RE: [RELEASE] TV Guide - with XMLTV and streaming support - twinther - 2013-01-20

Hi, the addon is supposed to automatically reload the xmltv file every time it changes.
I just fixed a bug today in this code which caused this to fail when running on Frodo, so that's probably why you didn't get the reload.

Br.
Tommy


RE: [RELEASE] TV Guide - with XMLTV and streaming support - WoodenTiger - 2013-01-20

(2013-01-20, 19:38)twinther Wrote: Hi, the addon is supposed to automatically reload the xmltv file every time it changes.
I just fixed a bug today in this code which caused this to fail when running on Frodo, so that's probably why you didn't get the reload.

Br.
Tommy

Tommy,

Quick question, how complicated would it be to add a "manual reload" button be added on the EPG UI?

In my case I seldom reboot XBMC, it goes on and on and on for weeks, the computer only goes to sleep and wakes up with everything loaded, and having that manual reload button could help me avoid rebooting XBMC to get the xmltv.xml file when it changes.

Also, have you noticed that the plugin feeding from an xml file will only work if you map the path of tha file to drive on windows and then pull the xmltv.xml file from there? if you use a SMB or NFS source without mapping it first the plug in complains with [Error 123].

BTW awesome plugin, I just managed to load 830 channels, with a week's worth of programming with no complains! :Its amazing! D


RE: [RELEASE] TV Guide - with XMLTV and streaming support - twinther - 2013-01-20

Hi WoodenTiger
The addon will automatically detect and reload the xmltv file once it changes. No reason to restart XBMC, etc.
The error message you get is actually the reason why this doesn't work in that version.

The option to load the data on XBMC startup is just to avoid the initial delay when you first start the addon.

I'm glad you like the addon Smile



RE: [RELEASE] TV Guide - with XMLTV and streaming support - twinther - 2013-01-21

Hi guys,
I just uploaded version 1.3.98 that fixes a couple of minor errors.
It's available in my beta repository http://tommy.winther.nu/xbmc/

I'm hoping I'm nearing the end of the bugfixing period and soon be able to release this in the official repo, so please let me know if anything breaks and submit the error reports as well.

Thanks,
Tommy


RE: [RELEASE] TV Guide - with XMLTV and streaming support - WoodenTiger - 2013-01-22

Hello Tommy,

I tested the plugin 1.3.98 on my two setups, Windows (Frodo) and openElec 2.0 (Eden) and it hangs while loading the xmltv.xml file, when I use SMB or NFS locations for the file rather than mapping the windows shared network drive to a local drive letter in windows.

Unfortunately on OpenElec we can't map network drives to local drive letters like I do on windows, so I'm forced to NFS is... and it fails.

XBMC.log on OpenElec states the following:

08:35:15 T:2900360000 NOTICE: Database.eventLoop() >>>>>>>>>> processing command: _updateChannelAndProgramListCaches
08:35:15 T:2900360000 NOTICE: xbmcvfs.File() is missing - perhaps you are running XBMC Eden? - retrying with python file opener
08:35:15 T:2900360000 ERROR: Traceback (most recent call last):
08:35:15 T:2900360000 ERROR: File "/storage/.xbmc/addons/script.tvguide-master/source.py", line 332, in _updateChannelAndProgramListCaches
08:35:15 T:2900360000 ERROR: for item in self.source.getDataFromExternal(date, progress_callback):
08:35:15 T:2900360000 ERROR: File "/storage/.xbmc/addons/script.tvguide-master/source.py", line 810, in getDataFromExternal
08:35:15 T:2900360000 ERROR: f = FileWrapper(self.xmltvFile)
08:35:15 T:2900360000 ERROR: File "/storage/.xbmc/addons/script.tvguide-master/source.py", line 898, in __init__
08:35:15 T:2900360000 ERROR: self.vfsfile = open(filename)
08:35:15 T:2900360000 ERROR: IOError: [Errno 2] No such file or directory: 'nfs://192.168.0.100/EPG/xmltv.xml'
08:35:15 T:2975853376 NOTICE: [script.tvguide] Scheduling notifications
08:35:15 T:2900360000 NOTICE: Database.eventLoop() >>>>>>>>>> processing command: _getNotifications
08:35:15 T:2900360000 NOTICE: Database.eventLoop() >>>>>>>>>> processing command: _close
08:35:15 T:2900360000 NOTICE: Database.eventLoop() >>>>>>>>>> exiting...

My guess is neither NFS, nor SMB locations return the required file date attribute that u use to verify if the xmltv.xml file has been updated, nor does it like opening files from network locations.


RE: [RELEASE] TV Guide - with XMLTV and streaming support - twinther - 2013-01-22

Well, nfs:// and smb:// simply does not work in Eden, because the required xbmcvfs methods are not available to Python addons.
There is nothing I can do about that. The workaround is to assign a local drive letter, etc.

This should not be necessary on Frodo though. On Frodo nfs:// and smb:// is supposed to work. I have tested smb:// myself.

Br.
Tommy


RE: [RELEASE] TV Guide - with XMLTV and streaming support - Bobian - 2013-01-22

Hello Tommy,
After updating to 1.3.98 I still have a problem with the open stream window. It takes up too much space and I can't fix it. My xbmc version is frodo rc3.
thanks a lot in advance.
Regards


RE: [RELEASE] TV Guide - with XMLTV and streaming support - yoroshi - 2013-01-23

Thank you twinther for doing for us such a good addon. I work with TVGuide until I got 1.3.5 version but there is one thing that won't work for me. After open a stream (not .strm but Favorites) I cannot see OSD Menu and change channels by pressing +/-.

It works for me like that:
1. I have to press Backspace but video is freezing in while and I got internal error saying "Playing is stopped!" (even if says that stream is playing as well).
Image
2. I have to close this dialog and press Backspace second time because by pressing "i" (info) it's showing me player controls.
3. Until I'm seeing live thumbnail video preview I can press "c" and then press "i" to view OSD Menu. If some channel hasn't got .strm file or Favorites added by pressing "+/i" it change its very well, but If some have added streams this is passing me to point no 1.).

It's all about my problem but I have one question.. How can I change live video thumbail on skin.aero.nox in tvguide?
It overlaps a little on the description.
Image

I'm using XBMC 12.0 RC3, TVGuide 1.3.98 and Weeb.tv addon.

Regards,
Michal


RE: [RELEASE] TV Guide - with XMLTV and streaming support - Maniac - 2013-01-23

Yeah same problem here, posted it few posts back.

+/- only change the volume, 'i' shows the info tab (would be nice with next event here Smile ).
I can only bring the osd menu if I use a mouse or a mousepad. If I press M, I only get a smal windows in centre for pause, play, stop...

Would be nice if we could change channels with arrows. and map a button to change ascpect ratio (16:9 etc)...


RE: [RELEASE] TV Guide - with XMLTV and streaming support - twinther - 2013-01-23

Yeah, apparently XBMC has some problems with starting a plugin:// type stream from another addon
or perhaps I'm doing something wrong. The result it usually the "Opening stream" dialog and other strange behaviour.

I'm scratching my head and pulling my hair, so if any of you have some ideas I would like to hear them Smile
I have already spent waaay too much time on this problem Sad

Latest test build is here: http://tommy.winther.nu/script.tvguide-20130123.zip

Br.
Tommy




Re: [RELEASE] TV Guide - with XMLTV and streaming support - bry - 2013-01-23

Twinther - do you think this will work with the new HDHomeRun upnp streaming?