NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Kodi / XBMC X-NEWA v
« Previous 1 … 5 6 7 8 9 … 13 Next »
X-NEWA: Customize TV Guide to work with other Kodi Addons

 
  • 0 Vote(s) - 0 Average
X-NEWA: Customize TV Guide to work with other Kodi Addons
Bren
Offline

Junior Member

Posts: 5
Threads: 1
Joined: Jan 2016
#1
2016-01-31, 06:45 PM
I have 12 channels that work with my Tuner on Next PVR, I added a few premium channels to see whats playing throughout the day on those channels.

I pay for those premium channels through Verizon and usually access them using the Chrome launcher addon in Kodi.

Is there a way to modify the X-NEWA TV Guide to open those channels using the Addon Chrome Launcher? Is there a better way to add websites to my TV Guide I am overlooking?


Thank you.
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,907
Threads: 956
Joined: May 2006
#2
2016-01-31, 07:05 PM
Bren Wrote:I have 12 channels that work with my Tuner on Next PVR, I added a few premium channels to see whats playing throughout the day on those channels.

I pay for those premium channels through Verizon and usually access them using the Chrome launcher addon in Kodi.

Is there a way to modify the X-NEWA TV Guide to open those channels using the Addon Chrome Launcher? Is there a better way to add websites to my TV Guide I am overlooking?


Thank you.

Maybe if you are talking LiveTV. I use Direct mode to change NextPVR URL's to HDHR URLs for some channels, playing directly over the network. You could modify direct.py (save source) for a channel you want and then return the new url in Chrome launcher format.

Code:
plugin://plugin.program.chrome.launcher/?url=URLENCODED_URL&mode=showSite&stopPlayback=

I do pass that to the video player so maybe other stuff has to be done to launch it, it is also kind of how web client launches YouTube from the NextPVR addon.

Mar
Bren
Offline

Junior Member

Posts: 5
Threads: 1
Joined: Jan 2016
#3
2016-01-31, 07:42 PM
Thank you!

It would be for Live TV

I'm not sure where to start with that info. Here is my direct.py, could you show me where to add that?

Code:
def LiveTV (parm):
        #return None
        try:
            #import hdhr
            #lineUp = hdhr.LineUp()
            #for channel in lineUp.channels.values():
            #    if parm[0]==channel.name:
            #        print channel.name
            #        print channel.sources
            #        return channel.sources[0]['url'] +  '?transcode=internet540'
            ##responses = hdhr.discovery.discover(discovery.TUNER_DEVICE)
    
            #if not responses: raise NoDevicesException()
    
            #if not lineUps: raise NoCompatibleDevicesException()
        catch:
            print "HDHR Not configured"

        if parm == '961':
            channel = 24
            program = 1
        elif parm == '968':
            channel = 42
            program = 1
        elif parm == '969':
            channel = 13
            program = 1
        elif parm == '978':
            channel = 43
            program = 1
        elif parm == '980':
            channel = 17
            program = 2
        elif parm == '981':
            channel = 20
            program = 3
        elif parm == '985':
            channel = 27
            program = 2
        elif parm == '989':
            channel = 22
            program = 3
        elif parm == '992':
            channel = 34
            program = 1
        elif parm == '993':
            channel = 30
            program = 2
        elif parm == '994':
            channel = 40
            program = 1
        elif parm == '995':
            channel = 25
            program = 3
        elif parm == '996':
            channel = 33
            program = 3
      
        elif parm == '6.1':
            channel = 14
            program = 1
        
         elif parm == '6.2':
            channel = 14
            program = 2
        else:            
            return None

        url = 'hdhomerun://103B4218-0/tuner0?channel=auto:' + `channel`+ '&program=' + `program`
        return url
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,907
Threads: 956
Joined: May 2006
#4
2016-01-31, 08:26 PM
The parm is the NextPVR channel number you want to watch you need to figure out what the urls are but this gives some idea.
Code:
def LiveTV (parm):

        if parm == '300':
            vzu = 'http://espn.go.com/watchespn/index'
        elif parm == '301':
            vzu = 'http://www.hbogo.com'
        elif parm == '302':
            vzu = 'http://www.cnn.com/video'
        elif parm == '303':
            vzu = 'http://entertainment.verizon.com/tv/3/landing/'
        else:            
            return None

        url = 'plugin://plugin.program.chrome.launcher/?url=' + vzu + '&mode=showSite&stopPlayback='
        return url

No idea if the plugin takes colons and slashes.

Martin
Bren
Offline

Junior Member

Posts: 5
Threads: 1
Joined: Jan 2016
#5
2016-01-31, 10:22 PM
I cleared out my direct.py and pasted your version in.

I made a channel 300 that my guide picks up in x-newa. Nothing happens when I click watch on channel 300, I posted the log below.

Looks like the setting to use a plugin for channel 300 is not getting picked up.

Code:
17:15:25 T:12868 WARNING: could not find codec parameters for http://127.0.0.1:8866/live?channel=300&client=KNEWA-0x448a5b6a63aeL
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,907
Threads: 956
Joined: May 2006
#6
2016-01-31, 10:47 PM
Bren Wrote:I cleared out my direct.py and pasted your version in.

I made a channel 300 that my guide picks up in x-newa. Nothing happens when I click watch on channel 300, I posted the log below.

Looks like the setting to use a plugin for channel 300 is not getting picked up.

Code:
17:15:25 T:12868 WARNING: could not find codec parameters for http://127.0.0.1:8866/live?channel=300&client=KNEWA-0x448a5b6a63aeL

Did you change x-newa config to use direct mode?

Martin
Bren
Offline

Junior Member

Posts: 5
Threads: 1
Joined: Jan 2016
#7
2016-01-31, 10:48 PM
yes
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,907
Threads: 956
Joined: May 2006
#8
2016-01-31, 10:53 PM
Can I see your whole log.

Martin
Bren
Offline

Junior Member

Posts: 5
Threads: 1
Joined: Jan 2016
#9
2016-01-31, 11:11 PM (This post was last modified: 2016-01-31, 11:17 PM by Bren.)
updated... http://xbmclogs.com/p0gwzwkma
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,907
Threads: 956
Joined: May 2006
#10
2016-01-31, 11:41 PM
That doesn't look like it is processing direct.py perhaps you have a tab error in it, python is picky. Maybe add print parm as the first line in it.

Martin
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Unclear how to install knewc and use it in Kodi smbunn 2 1,370 2023-05-02, 01:12 PM
Last Post: mvallevand
  X-NEWA client problem jcjefferies 2 1,046 2023-04-11, 05:01 PM
Last Post: jcjefferies
  Kodi 19 Matrix - knewc is Uninstalled after Modification meccano 2 2,723 2021-04-12, 03:08 PM
Last Post: meccano
  Kodi 19 Beta jcjefferies 6 2,492 2021-03-29, 06:40 PM
Last Post: mvallevand
  kodi/knewc crashing baj1 12 4,354 2021-01-23, 07:05 PM
Last Post: baj1
  x-newa new install wheemer 14 4,668 2020-09-15, 02:21 AM
Last Post: mvallevand
  XNewa on Kodi 18.8 on Android TV Jumps out Playing Show Currently Recording jksmurf 28 10,676 2020-09-13, 06:09 AM
Last Post: jksmurf
  New repository for KNEWC and X-NEWA mvallevand 8 8,753 2020-05-09, 02:19 AM
Last Post: jksmurf
  X-NEWA keeping host PC awake lost@c 6 2,734 2020-04-03, 04:26 AM
Last Post: lost@c
  Loading the Guide jcole998 3 1,746 2019-11-24, 10:09 PM
Last Post: mvallevand

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode