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 - patria o muerte - 2013-03-18

Thanks!


RE: [RELEASE] TV Guide - with XMLTV and streaming support - ledgy89 - 2013-03-22

hi, is there any way for me to use the streams from the sportdevil add on tv section (cricfree- putpat etc) in the tv guide with the epg etc?? Thanks


RE: [RELEASE] TV Guide - with XMLTV and streaming support - ledgy89 - 2013-03-22

also is there a way to integrate my media portal pvr add on in xbmc with this tv guide? Thanks


RE: [RELEASE] TV Guide - with XMLTV and streaming support - dallasnights - 2013-03-25

how fo you integrate this great mod with Not Filmon so I can view TV from the channel lists
Iam on ATV2 Frodo

Thanks all


RE: [RELEASE] TV Guide - with XMLTV and streaming support - greco - 2013-03-28

I tried to find an answer to my dilema in this thread but I had no succes, maybe someone can help me...

I have multiple XMBC's running in the house and I use TV Guide with some custom streams, and trying to get USTVNOW to work as well, but my dilema is I don't want to maintain xmltv files on multiple machines so I would prefer using a centralized location. Unfortunately if I make a change I can't find a way to tell tv guide to relead the xmltv through a context menu or settings, and command line is no option as 3 of them are on android devices. Is there a way to refresh the xml from within the script?

Lastly when I followed the instructions for ustvnow integration, I get no video only audio playing through tv guide. the plugin itself works though..

thanks.



UPDATE: I figured it out. Works like a charm!


RE: [RELEASE] TV Guide - with XMLTV and streaming support - deepasadish - 2013-03-28

Awesome work. Thank you.

I have a question/request:

I have a HDHomeRun that I use to record shows. I simply use the command line hdhomerun_config utility to save the stream.

When the user selects a show, is it possible to kick off a batch file or shell script, passing in the channel and time of the program?

Thanks.

ps. i have a apple tv 1 running openelec that I am using for this purpose (as backend), so the XBMC live tv recording probably has too much overhead.


RE: [RELEASE] TV Guide - with XMLTV and streaming support - greco - 2013-04-01

Here's another tricky question... How can I get the TV Guide script to read from two different xmltv files? One file pulls from one source, while the other form a completely different one. It's impossible to combine the two sources as teh XMLTVFormat DTD only allows for one tv tag.

Any bright ideas out there?


RE: [RELEASE] TV Guide - with XMLTV and streaming support - rebelscum - 2013-04-02

(2013-02-02, 17:46)vandonh Wrote:
(2013-02-01, 23:57)learningit Wrote:
(2013-01-31, 01:21)vandonh Wrote: I'm using TV Guide now with the Filmon plugin and it works great, have also set up several sports stream setup and that works too.

Now my next hurdle is the USTVNOW plugin, I can save the channels as favorites and select the channels in TV Guide to the correct program/station, however I've noticed now that the USTVNOW favorites are only valid for a 24 hour period, after that period they will need to be reselected and again assigned to the TV Guide channels. The end result is that it is a non working solution.

Now I wonder if we can do the same as done for the FilmOn plugin

To use the USTVNOW plugin from TV Guide, add the following code at the end of default.py, just before the last line which should read: Addon.end_of_directory()
You will find default.py in the plugin.video.ustvnow directory.

elif mode=='play':
name = Addon.plugin_queries['name']
try:
stream_type = 'rtmp'
channels = []
quality = int(Addon.get_setting('quality'))
channels = ustv.get_channels(quality,stream_type)
for c in channels:
if c['name'] == name:
print "URL = "+c['url']
print "setResolvedUrl"
item = xbmcgui.ListItem(path=c['url'])
xbmcplugin.setResolvedUrl(int(sys.argv[1]), True, item)
except:
pass



Then, setup a .strm file containing the following line:
plugin://plugin.video.ustvnow/?name=ABC&mode=play

You can use ABC, CBS, NBC, CW, FOX, PBS, My9 (note case sensitivity) for the free channels. The resolution will follow whatever is set in settings for USTVNOW. I use mc2xml set to a harrisburg, pa zip code to get the .xml for listings.

For some reason the indentations on the code above don't show correctly, but if you 'quote' the post you'll see the proper indents or if you know python you can figure it out.

This is great, exactly whay I needed, thank you!!!

Have a problem with the code, I get the following script error:

Error Contents: ('invalid syntax', ('C:\\Users\\Sony\\AppData\\Roaming\\XBMC\\addons\\plugin.video.ustvnow\\default.py', 84, 7, ' for c in channels:\n'))

So I must be doing some thing wrong with inserting the code


Update, figured it out working like a champ!!!!

Many thanks my friend!!!

What did you have to change to get it working? I too am running into this.


RE: [RELEASE] TV Guide - with XMLTV and streaming support - XeroKool - 2013-04-02

(2013-04-02, 16:40)rebelscum Wrote: What did you have to change to get it working? I too am running into this.

Here is the code with the correct indentation:

Code:
elif mode=='play':
  name = Addon.plugin_queries['name']
  try:
    stream_type = 'rtmp'
    channels = []
    quality = int(Addon.get_setting('quality'))
    channels = ustv.get_channels(quality,stream_type)
    for c in channels:
      if c['name'] == name:
        print "URL = "+c['url']
        print "setResolvedUrl"
        item = xbmcgui.ListItem(path=c['url'])
        xbmcplugin.setResolvedUrl(int(sys.argv[1]), True, item)
  except:
    pass



RE: [RELEASE] TV Guide - with XMLTV and streaming support - hunkyn - 2013-04-08

I searched through the thread but could not find an answer. How do I change the skin from default?

[update] seems like it goes with the skin. Took me long time to figure that out but everything is sorted. Thanks for the excellent addon


RE: [RELEASE] TV Guide - with XMLTV and streaming support - alibaba011 - 2013-04-09

(2013-04-01, 17:18)greco Wrote: Here's another tricky question... How can I get the TV Guide script to read from two different xmltv files? One file pulls from one source, while the other form a completely different one. It's impossible to combine the two sources as teh XMLTVFormat DTD only allows for one tv tag.

Any bright ideas out there?

i use mc2xml to combine two xml See Tutorial here and here

basically among other option use option -I to combine two xml example:

mc2xml.exe -c gb -g "W1D 3RW" -C uk.chl -F -a -A -D uk.dat -I tvguide2.xml -o tvguide.xml


RE: [RELEASE] TV Guide - with XMLTV and streaming support - bry - 2013-04-09

(2013-04-09, 08:41)alibaba011 Wrote:
(2013-04-01, 17:18)greco Wrote: Here's another tricky question... How can I get the TV Guide script to read from two different xmltv files? One file pulls from one source, while the other form a completely different one. It's impossible to combine the two sources as teh XMLTVFormat DTD only allows for one tv tag.

Any bright ideas out there?

i use mc2xml to combine two xml See Tutorial here and here

basically among other option use option -I to combine two xml example:

mc2xml.exe -c gb -g "W1D 3RW" -C uk.chl -F -a -A -D uk.dat -I tvguide2.xml -o tvguide.xml

quoting this to save. thanks for the info!


RE: [RELEASE] TV Guide - with XMLTV and streaming support - sasa1965 - 2013-04-13

(2013-04-09, 21:34)bry- Wrote:
(2013-04-09, 08:41)alibaba011 Wrote:
(2013-04-01, 17:18)greco Wrote: Here's another tricky question... How can I get the TV Guide script to read from two different xmltv files? One file pulls from one source, while the other form a completely different one. It's impossible to combine the two sources as teh XMLTVFormat DTD only allows for one tv tag.

Any bright ideas out there?

i use mc2xml to combine two xml See Tutorial here and here

basically among other option use option -I to combine two xml example:

mc2xml.exe -c gb -g "W1D 3RW" -C uk.chl -F -a -A -D uk.dat -I tvguide2.xml -o tvguide.xml

quoting this to save. thanks for the info!

Or you can use small program WebGrab+Plus.


RE: [RELEASE] TV Guide - with XMLTV and streaming support - bbgg - 2013-04-15

I used program on PC, works great. Now I switched over to Raspberry Openelec. Beside slow loading of database from XMLTV file, there is another problem.
For having OSD info displayer in play mode, you have to use window mode. On raspberry there is no window mode, so I can't use Info, or Channel Up/Down.
Is there any workaround to use this keys?
Thanks.


RE: [RELEASE] TV Guide - with XMLTV and streaming support - trigrhappy - 2013-04-22

(2013-04-01, 17:18)greco Wrote: Here's another tricky question... How can I get the TV Guide script to read from two different xmltv files? One file pulls from one source, while the other form a completely different one. It's impossible to combine the two sources as teh XMLTVFormat DTD only allows for one tv tag.

Any bright ideas out there?

As someone else already posted, you do it with mc2xml as well. After going through the trouble of trying out various pvr backends and setting them all up perfectly only to be driven mad by various limitations........ I've found that the live tv functionality I've always wanted was always built right into the "TV Guide" addon. Because it lets you link channels as favorites, I'm able to add the streams from any live streaming add-on I want (nearly anyway). I'm also able to combine those internet live streams to my HDHomerun streams. All in a single fluid, beautiful and accurate EPG.

What makes it possible to have all those channels linked into one seamless TV Guide is the functionality in mc2xml that allows you to combine xmltv files. I have a bat file run mc2xml 3 times to pull EPG data for 3 sources...one for my local channels I get with an antenna and HDHomerun, another for the stations in Pennsylvania you get for free through ustvnow, and lastly the channels I stream live over the internet (for the most part, these channels are the UK versions of American channels, so I pull from the Skysat).

Each of the 3 times it is run, it combines with the xmltv file from the previous run....so that the last run produces a single xmltv file containing all 3. I then feed that one into the TV Guide plugin and viola........now I have my local channels, as well as foreign channels like Russia Today and Al Jazeera, all in a seemless and accurate EPG.

Also, because you can point TV Guide at a favorite, and then remove it from your favorites without losing the link in TV Guide, you can have unlimited channels in TV Guide without clogging your XBMC favorites.