• 1
  • 36
  • 37
  • 38(current)
  • 39
  • 40
  • 50
Release TV Guide - with XMLTV and streaming support
(2013-11-04, 20:47)DixieDean Wrote: Just to add to this advice... if you paste the following lines into the addons.ini file the USTVNOW Addon will show up under Addons in the Choose Stream window. So no need to make .strm files.

HTH


Cheers


Rich

Code:
[plugin.video.ustvnow]
ABC=plugin://plugin.video.ustvnow/?name=ABC&mode=play
AETV=plugin://plugin.video.ustvnow/?name=AETV&mode=play
Animal Planet=plugin://plugin.video.ustvnow/?name=Animal Planet&mode=play
Bravo=plugin://plugin.video.ustvnow/?name=Bravo&mode=play
Cartoon Network=plugin://plugin.video.ustvnow/?name=Cartoon Network&mode=play
CBS=plugin://plugin.video.ustvnow/?name=CBS&mode=play
CNBC=plugin://plugin.video.ustvnow/?name=CNBC&mode=play
CNN=plugin://plugin.video.ustvnow/?name=CNN&mode=play
Comedy Central=plugin://plugin.video.ustvnow/?name=Comedy Central&mode=play
CW=plugin://plugin.video.ustvnow/?name=CW&mode=play
Discovery Channel=plugin://plugin.video.ustvnow/?name=Discovery Channel&mode=play
ESPN=plugin://plugin.video.ustvnow/?name=ESPN&mode=play
Food Network=plugin://plugin.video.ustvnow/?name=Food Network&mode=play
Fox News Channel=plugin://plugin.video.ustvnow/?name=Fox News Channel&mode=play
FOX=plugin://plugin.video.ustvnow/?name=FOX&mode=play
FX=plugin://plugin.video.ustvnow/?name=FX&mode=play
History=plugin://plugin.video.ustvnow/?name=History&mode=play
Lifetime=plugin://plugin.video.ustvnow/?name=Lifetime&mode=play
My9=plugin://plugin.video.ustvnow/?name=My9&mode=play
National Geographic Channel=plugin://plugin.video.ustvnow/?name=National Geographic Channel&mode=play
NBC=plugin://plugin.video.ustvnow/?name=NBC&mode=play
Nickelodeon=plugin://plugin.video.ustvnow/?name=Nickelodeon&mode=play
PBS=plugin://plugin.video.ustvnow/?name=PBS&mode=play
SPIKE TV=plugin://plugin.video.ustvnow/?name=SPIKE TV&mode=play
Syfy=plugin://plugin.video.ustvnow/?name=Syfy&mode=play
TBS=plugin://plugin.video.ustvnow/?name=TBS&mode=play
TNT=plugin://plugin.video.ustvnow/?name=TNT&mode=play
USA=plugin://plugin.video.ustvnow/?name=USA&mode=play

Awesome!
Do you think i can do the same with Livestreams addon?
I currently use a url database as source which channels are separated in subcategories.
Thanks.
Reply
It all depends on how the streams work and how the addon is written. And I've never used that one.

Where would I get it from? And I'll take a look.


Cheers

Rich
Reply
Hi Dixiedean,
i sent you a pm about that.
Thanks
Reply
I keep loosing my 'hidden channels' configuration. Can I grab the save files from another computer and put on this one? If so where?
Reply
(2013-09-17, 14:40)laconical Wrote: For anyone who wants the TV Guide addon to apply the timezone information that is included in their xmltv files, here is how I did it. Keep in mind that I am an absolute python novice and this is the first code I've written in this language. Also note that I have only tested this with an Australian xmltv file (+1000) but it should theoretically work for any timezone offset.

In order to get TV Guide to take notice of your timezone information:

1. Delete the source.db file in .xbmc/userdata/addon_data/script.tvguide

2. Change this function in .xbmc/addons/script.tvguide/source.py:

Code:
def parseXMLTVDate(dateString):
    if dateString is not None:
        if dateString.find(' ') != -1:
            # remove timezone information
            dateString = dateString[:dateString.find(' ')]
        t = time.strptime(dateString, '%Y%m%d%H%M%S')
        return datetime.datetime(t.tm_year, t.tm_mon, t.tm_mday, t.tm_hour, t.tm_min, t.tm_sec)
    else:
        return None

to this:

Code:
def parseXMLTVDate(dateString):
    from datetime import timedelta
    from datetime import datetime
    from time import mktime
    numHours = None
    subtract = False

    if dateString is not None:
        if dateString.find(' ') != -1:
            # parse timezone information
            if dateString.find('+') != -1:
                numHours = dateString[dateString.find('+')+1:len(dateString)-2]
            else:
                numHours = dateString[:dateString.find('-')+1:len(dateString)-2]
                subtract = True

            dateString = dateString[:dateString.find(' ')]
        
        t = time.strptime(dateString, '%Y%m%d%H%M%S')
        dt = datetime.fromtimestamp(mktime(t))

        if numHours is not None:
            if subtract:
                dt = dt - timedelta(hours=int(numHours))
            else:
                dt = dt + timedelta(hours=int(numHours))
        
        return dt
    else:
        return None

3. Restart TV Guide - it should update with the correct times.
I guess this will only work if you're on UTC/GMT+0, or in the UK. This cannot work unless you know which timezone the user is located in, and calculate offsets from that. Anyone who knows how to change that...? Cause this would be very useful
Reply
(2013-11-06, 18:41)patria o muerte Wrote:
(2013-11-04, 20:47)DixieDean Wrote: Just to add to this advice... if you paste the following lines into the addons.ini file the USTVNOW Addon will show up under Addons in the Choose Stream window. So no need to make .strm files.

HTH


Cheers


Rich

Code:
[plugin.video.ustvnow]
ABC=plugin://plugin.video.ustvnow/?name=ABC&mode=play
AETV=plugin://plugin.video.ustvnow/?name=AETV&mode=play
Animal Planet=plugin://plugin.video.ustvnow/?name=Animal Planet&mode=play
Bravo=plugin://plugin.video.ustvnow/?name=Bravo&mode=play
Cartoon Network=plugin://plugin.video.ustvnow/?name=Cartoon Network&mode=play
CBS=plugin://plugin.video.ustvnow/?name=CBS&mode=play
CNBC=plugin://plugin.video.ustvnow/?name=CNBC&mode=play
CNN=plugin://plugin.video.ustvnow/?name=CNN&mode=play
Comedy Central=plugin://plugin.video.ustvnow/?name=Comedy Central&mode=play
CW=plugin://plugin.video.ustvnow/?name=CW&mode=play
Discovery Channel=plugin://plugin.video.ustvnow/?name=Discovery Channel&mode=play
ESPN=plugin://plugin.video.ustvnow/?name=ESPN&mode=play
Food Network=plugin://plugin.video.ustvnow/?name=Food Network&mode=play
Fox News Channel=plugin://plugin.video.ustvnow/?name=Fox News Channel&mode=play
FOX=plugin://plugin.video.ustvnow/?name=FOX&mode=play
FX=plugin://plugin.video.ustvnow/?name=FX&mode=play
History=plugin://plugin.video.ustvnow/?name=History&mode=play
Lifetime=plugin://plugin.video.ustvnow/?name=Lifetime&mode=play
My9=plugin://plugin.video.ustvnow/?name=My9&mode=play
National Geographic Channel=plugin://plugin.video.ustvnow/?name=National Geographic Channel&mode=play
NBC=plugin://plugin.video.ustvnow/?name=NBC&mode=play
Nickelodeon=plugin://plugin.video.ustvnow/?name=Nickelodeon&mode=play
PBS=plugin://plugin.video.ustvnow/?name=PBS&mode=play
SPIKE TV=plugin://plugin.video.ustvnow/?name=SPIKE TV&mode=play
Syfy=plugin://plugin.video.ustvnow/?name=Syfy&mode=play
TBS=plugin://plugin.video.ustvnow/?name=TBS&mode=play
TNT=plugin://plugin.video.ustvnow/?name=TNT&mode=play
USA=plugin://plugin.video.ustvnow/?name=USA&mode=play

Awesome!
Do you think i can do the same with Livestreams addon?
I currently use a url database as source which channels are separated in subcategories.
Thanks.

Anyone can help me please?
Reply
Question 
Hi guys, Im new there, I was just trying to do some sort of mod for tvguide, I would like to make a Channels logos clicable, is there any chance to do it? Im sitting on the front of the code 4 days now, cant find it. I mightbe blind.Smile second think is that Im trying to do shortcut list for chanels so U can pick your chanel from the list on the top of the sceen. Done this but got just a "TEXT" channels names and I would prefer logos again cant find it. Any chance that you can navigate me to the code that Im looking for?

This is how does it looks at the moment. It is all in Polish so sorrySmile

Image
Image

Obviously Im gonna try to do this list on the top of the screen to show/hide on click Buton U on keyboard or there is acces to it on the bottom of the submenu "C"

Thanks
Reply
Anyone know how to do it with Livestreams ?
Reply
The way to get a Livestreams stream into the TV Guide is to add it to your favourites and then allocate that favourite to a channel in your TV Guide.
Reply
I know, but the wrong of this option is that if the link changes favorite saying this to be added does not recognize it.

I found another option by editing the "addon.ini" file but it has to do the same, when the link changes need to edit the file.
Reply
Well that's to do with the hoster of the stream... there's no 'dynamic' way to do that as far as I know in TV Guide.

I do the same as you (put the stream url into addons.ini)Huh

Having said that, I am trying to work out a method where TV Guide could parse a xml playlist as a url or a file (like LiveStreams does).
And then have a way to link to a channel in the EPG.

Even then I feel if the stream url changes (or dies) you would still need to do some editing.

It's all just a theory at the moment. lol


Cheers


Rich
Reply
Does anyone know how I can remove the borders in the tvguide script, but I don't know where to find them.

Here's the screenshot:

Image


Can you please tell me where I should find them to remove it?

Do you know how I can use my own background instead of using tvguide-program-grey.png?

Do you know how I can add the main menu in the tvguide script like this?

Image


How I can set the tv description to the top instead of bottom?

I want to make the tvguide looks like this:

Image


When I select on per programme, do you know where I can find in the script that I can stop the background from changing when I select on per programme as I want to use it as defeat background?

And when I select on the channel, I want to play the live stream where the programme image are in the small box. Do you know?

How I can remove the logo to be replace with channels text?

Cheers
Reply
(2013-11-18, 11:17)ProsjektX Wrote:
(2013-09-17, 14:40)laconical Wrote: For anyone who wants the TV Guide addon to apply the timezone information that is included in their xmltv files, here is how I did it. Keep in mind that I am an absolute python novice and this is the first code I've written in this language. Also note that I have only tested this with an Australian xmltv file (+1000) but it should theoretically work for any timezone offset.

In order to get TV Guide to take notice of your timezone information:

1. Delete the source.db file in .xbmc/userdata/addon_data/script.tvguide

2. Change this function in .xbmc/addons/script.tvguide/source.py:

Code:
def parseXMLTVDate(dateString):
    if dateString is not None:
        if dateString.find(' ') != -1:
            # remove timezone information
            dateString = dateString[:dateString.find(' ')]
        t = time.strptime(dateString, '%Y%m%d%H%M%S')
        return datetime.datetime(t.tm_year, t.tm_mon, t.tm_mday, t.tm_hour, t.tm_min, t.tm_sec)
    else:
        return None

to this:

Code:
def parseXMLTVDate(dateString):
    from datetime import timedelta
    from datetime import datetime
    from time import mktime
    numHours = None
    subtract = False

    if dateString is not None:
        if dateString.find(' ') != -1:
            # parse timezone information
            if dateString.find('+') != -1:
                numHours = dateString[dateString.find('+')+1:len(dateString)-2]
            else:
                numHours = dateString[:dateString.find('-')+1:len(dateString)-2]
                subtract = True

            dateString = dateString[:dateString.find(' ')]
        
        t = time.strptime(dateString, '%Y%m%d%H%M%S')
        dt = datetime.fromtimestamp(mktime(t))

        if numHours is not None:
            if subtract:
                dt = dt - timedelta(hours=int(numHours))
            else:
                dt = dt + timedelta(hours=int(numHours))
        
        return dt
    else:
        return None

3. Restart TV Guide - it should update with the correct times.
I guess this will only work if you're on UTC/GMT+0, or in the UK. This cannot work unless you know which timezone the user is located in, and calculate offsets from that. Anyone who knows how to change that...? Cause this would be very useful

Hi,

I am also a complete beginner at Python, but have got this working by changing the grabber (/usr/bin/tv_grab_uk_rt) instead.

Adding in the following code in the grabber, solves the problem as the XMLTV file is then already in your local timezone:

$start_dt->set_time_zone( 'local' );

I did this for the Radio Times grabber, and put it immediately after the piece of code that determines the start time with the correct UTC offset.

So I have:

# Determine start time with correct UTC offset
my $start_dt = DateTime->new(
year => $yyyy,
month => $mm,
day => $dd,
hour => $start_hr,
minute => $start_mn,
second => 0,
time_zone => $tz,
);

$start_dt->set_time_zone( 'local' );

That allows the TVGuide to pick up the correct time for your box.
Not sure how this would work in Windows though?
Reply
(2013-12-01, 16:49)DixieDean Wrote: Well that's to do with the hoster of the stream... there's no 'dynamic' way to do that as far as I know in TV Guide.

I do the same as you (put the stream url into addons.ini)Huh

Having said that, I am trying to work out a method where TV Guide could parse a xml playlist as a url or a file (like LiveStreams does).
And then have a way to link to a channel in the EPG.

Even then I feel if the stream url changes (or dies) you would still need to do some editing.

It's all just a theory at the moment. lol


Cheers


Rich

one possible option might be to check out some of the sports-tv addons.

alot of them have modules for streaming sites like ilive.to and others.

just do the same as you do with ustvnow and add the respective plugin://-links.

as long as the initial link doesn't change, you might have luck. Smile
Reply
Hello Again,

I've been using this addon for a while (V2.0.5) and it works great with the Gotham nightlies so far.

A major issue for me is that I'm using an HDHomeRun Prime and TVGuide will force my Mythtv Backend to stop recording when I use TVGuide to tune a channel.

Is there a way to set a tuner preference in TVGuide, or is this a function of the HDHomeRun live streaming server to always use the lowest number tuner available (tuner0) ?
Reply
  • 1
  • 36
  • 37
  • 38(current)
  • 39
  • 40
  • 50

Logout Mark Read Team Forum Stats Members Help
TV Guide - with XMLTV and streaming support11