(OLD) Unofficial Kodi PVR Client for HDHomeRun DVR subscribers

Kodi Community Development

Moderator: TVJunkie198

Locked
clarkss12
Posts: 1198
Joined: Sat May 11, 2013 11:51 am
Device ID: 104CBEA5 ;1055A951
Location: Michigan, USA
Contact:

Re: Unofficial Kodi PVR Client for HDHomeRun DVR subscribers

Post by clarkss12 » Mon Feb 18, 2019 9:32 am

Installed the latest nightly CoreELEC (CoreELEC-Amlogic.arm-9.0-nightly_20190217) and now your addon installs.
Thank you, Michael.

jachin99
Posts: 73
Joined: Sat Feb 13, 2016 4:18 pm

Re: Unofficial Kodi PVR Client for HDHomeRun DVR subscribers

Post by jachin99 » Mon Feb 18, 2019 10:12 am

djp952 wrote:
Sun Feb 17, 2019 7:55 pm
I can pretty much guarantee that any version newer than v1.1.1 will not work right with DS Player. Sorry if that wasn't as clear as it could be in the PM, I was trying to remember and look at the old code when replying. v1.1.1 was the last version that used Kodi's built-in streaming capabilities for anything, and DS Player relies upon that.

For DS Player, you will need:
DS Player worked by hooking into/replacing the streaming code in Kodi, so if the PVR bypasses that, as this PVR always does in version 1.2.0 and higher, you can be certain it won't work as expected. I never got DS Player working to my satisfaction back then, but in honesty since I've been working on this I haven't had any Windows-based systems that would benefit from it, either.

Version 1.1.1 of the PVR goes through Kodi for streaming of Live TV if you enable that option. That version always used Kodi for Recorded TV. Unfortunately, enabling that option also prevents timeshifting/seek from working for Live TV. Sending Kodi the URL to the stream in the way necessary for DS Player to "intercept" it won't send the HDHomeRun DVR the necessary HTTP RANGE header, which in turn means you don't get back the response headers necessary to do timeshifting/seeking.

What I would like your help with is seeing if you can get version 1.1.1 working to your satisfaction, within the realm of limitations presented above. You won't get timeshifting/seeking, that will be a given at this point. However, if you can get the basic enhanced rendering functionality working, I'm totally willing to see how much newer stuff can be back-ported into the old 1.1.x Krypton baseline for you, and will see if any new tricks learned along the way might get timeshifting operable.

This one needs to be a team effort :)
I'm reconfiguring my test system to match this, and I'll let you know what I find.

timstephens24
Posts: 65
Joined: Wed Apr 01, 2015 11:44 am

Re: Unofficial Kodi PVR Client for HDHomeRun DVR subscribers

Post by timstephens24 » Mon Feb 18, 2019 12:22 pm

djp952 wrote:
Mon Feb 18, 2019 9:16 am
timstephens24 wrote:
Mon Feb 18, 2019 8:35 am
Am I missing how to merge my tuners into one? I have multiple of the same channel listed since I have two HDHomeRun Primes. If I'm not missing it, anything I can do to help it get supported?
The PVR automatically collapses the channels into one list, it loads everything up into a database and then queries it. Are you using the built-in Kodi "pvr.hdhomerun" addon by chance, or have multiple PVRs enabled?

If you're definitely using "zuki.pvr.hdhomerundvr" and no other PVRs, I would need to see your database file to see why it would return multiple items from a DISTINCT query.
I'm going to go with it being a "me" issue. I just installed it on a clean Kodi install on a NVIDIA Shield and it only shows doubles where I would expect it (OTA local channels and Comcast local channels). Thanks!

timecutter
Posts: 15
Joined: Mon Aug 20, 2018 5:12 am

Re: Unofficial Kodi PVR Client for HDHomeRun DVR subscribers

Post by timecutter » Mon Feb 18, 2019 5:08 pm

djp952 wrote:
Sat Feb 16, 2019 9:21 pm
I'd also like to thank timecutter yet again for taking the time and effort to give everyone a suitable version of the PVR to use with CoreELEC 8.99.x and 9.0.0.
Happy to help! Back to the Umbrella Academy.

djp952
Posts: 858
Joined: Wed Oct 01, 2008 8:46 pm
Device ID: 131EB7F7;131ED0E0
Location: Elkridge, MD

Re: Unofficial Kodi PVR Client for HDHomeRun DVR subscribers

Post by djp952 » Mon Feb 18, 2019 5:25 pm

timecutter wrote:
Mon Feb 18, 2019 5:08 pm
djp952 wrote:
Sat Feb 16, 2019 9:21 pm
I'd also like to thank timecutter yet again for taking the time and effort to give everyone a suitable version of the PVR to use with CoreELEC 8.99.x and 9.0.0.
Happy to help! Back to the Umbrella Academy.
Plenty of room for some enhancements and defect resolution here ... just sayin'. Let me know if you get too bored, OK?

I can even help you get set up with debugging Kodi itself if you're interested in such a thing. Spending my evening trying to duplicate the audio-only stream problems again, especially since it seems to affect the other PVRs out there. :D Faking an audio only live stream from a recorded one. Problem Solving is 50% of the fun! (Making people happy is the other 50%).

The help has been and will always be appreciated my friend. Like I said you just let me know. I can also get you in touch with a person that has been working on a fork of this PVR and I'm all but certain a helping hand would be quite welcome to him!

jachin99
Posts: 73
Joined: Sat Feb 13, 2016 4:18 pm

Re: Unofficial Kodi PVR Client for HDHomeRun DVR subscribers

Post by jachin99 » Tue Feb 19, 2019 7:22 am

I setup a 64 bit instance of Kodi DS 17, and grabbed version 1.1.1.6397. I also enabled the PVR to stream channels directly from the tuner, and here are the issues so far. I see the PVR download guide data but it doesn't seem to populate the guide, I.E. when I go to the TV guide, I see my channel names but all of the grid cells are empty. The good news is that if I select a channel from either the guide, or the channels list my video plays with LAV and Mad VR. If I select a channel from the recent channels list the video plays using video player, and I don't get a madvr or lav tray icon. I can pause, play and stop live TV but I don't get time shifiting. I emailed the developer telling him I have a few people interested in integrating their PVR addons into Kodi DS so we'll see how that pan outs. Is there anything else I can do to help move this along?

djp952
Posts: 858
Joined: Wed Oct 01, 2008 8:46 pm
Device ID: 131EB7F7;131ED0E0
Location: Elkridge, MD

Re: Unofficial Kodi PVR Client for HDHomeRun DVR subscribers

Post by djp952 » Tue Feb 19, 2019 8:40 am

jachin99 wrote:
Tue Feb 19, 2019 7:22 am
I setup a 64 bit instance of Kodi DS 17, and grabbed version 1.1.1.6397. I also enabled the PVR to stream channels directly from the tuner, and here are the issues so far. I see the PVR download guide data but it doesn't seem to populate the guide, I.E. when I go to the TV guide, I see my channel names but all of the grid cells are empty. The good news is that if I select a channel from either the guide, or the channels list my video plays with LAV and Mad VR. If I select a channel from the recent channels list the video plays using video player, and I don't get a madvr or lav tray icon. I can pause, play and stop live TV but I don't get time shifiting. I emailed the developer telling him I have a few people interested in integrating their PVR addons into Kodi DS so we'll see how that pan outs. Is there anything else I can do to help move this along?
Awesome! The EPG is probably the result of 1.1.1 being outdated, I can fix that. Launching via recent channels shouldn't be any different than via the EPG or channel list, but I can look at that too.

I'll go ahead and crate a branch off of 1.1.1 and get to work for ya. Will let you know when I have a build that seems to operate properly on normal Krypton, and what I can find out about the recent channels. If there doesn't appear to be any hacks possible for Live TV, I will also let you know what I think DS Player needs to change to get it to work.

It will take a day or two, just FYI.

jachin99
Posts: 73
Joined: Sat Feb 13, 2016 4:18 pm

Re: Unofficial Kodi PVR Client for HDHomeRun DVR subscribers

Post by jachin99 » Tue Feb 19, 2019 11:03 am

That sounds great!! I'm not in any hurry and thanks for the help.

djp952
Posts: 858
Joined: Wed Oct 01, 2008 8:46 pm
Device ID: 131EB7F7;131ED0E0
Location: Elkridge, MD

Re: Unofficial Kodi PVR Client for HDHomeRun DVR subscribers

Post by djp952 » Tue Feb 19, 2019 9:33 pm

jachin99 wrote:
Tue Feb 19, 2019 11:03 am
That sounds great!! I'm not in any hurry and thanks for the help.
I got pretty far tonight getting 1.1.x updated in regard to dependencies and some back-porting of critical changes. If you want to use the PVR and have the EPG work, you are free to install a pre-release of the "Krypton-legacy" v1.1.2 windows-x64 addon from this link: https://1drv.ms/f/s!AgEGEEVzGNq-i9V-ArCAi4Xd6oTl9w

After installation, you will want to "Clear Data" in the PVR & Live TV / Guide settings to have the EPG reloaded. This isn't the most current set of EPG code, so while it's not as fast as it could be it should function for you now.

Note that this has not been tested outside of Windows and is not a formal release. There is still work to do.

jachin99
Posts: 73
Joined: Sat Feb 13, 2016 4:18 pm

Re: Unofficial Kodi PVR Client for HDHomeRun DVR subscribers

Post by jachin99 » Wed Feb 20, 2019 6:41 pm

I grabbed a copy of your changes, and cleared my guide data. That seemed to do the trick as my guide populates so thats a welcomed encouraging sign. Choosing a channel from the recent channels list stilI doesn't give me madvr playback but everything else does. I suppose the next feature request would be timeshifting if that's possible. If you plan to go all the way with this I suppose I'll have to subscribe to their DVR service. Either way thanks for the help so far

djp952
Posts: 858
Joined: Wed Oct 01, 2008 8:46 pm
Device ID: 131EB7F7;131ED0E0
Location: Elkridge, MD

Re: Unofficial Kodi PVR Client for HDHomeRun DVR subscribers

Post by djp952 » Wed Feb 20, 2019 8:43 pm

jachin99 wrote:
Wed Feb 20, 2019 6:41 pm
I grabbed a copy of your changes, and cleared my guide data. That seemed to do the trick as my guide populates so thats a welcomed encouraging sign. Choosing a channel from the recent channels list stilI doesn't give me madvr playback but everything else does. I suppose the next feature request would be timeshifting if that's possible. If you plan to go all the way with this I suppose I'll have to subscribe to their DVR service. Either way thanks for the help so far
Funny you mention the DVR service, without the HDHomeRun DVR engine set up somewhere you can't do timeshifting anyway. The HDHomeRun tuners don't provide this functionality on their own. Other products implement that with HDHR tuners via their own DVR functionality. All you can get from a tuner is a live stream - there is no back buffer to work with.

In regard to getting timeshing to work, I dug in and conclusively determined again that as long as DS Player requires the Kodi stream URL 'hack' (the function inside is literally called "ThisIsAHack()" - no joke) to enable the functionality, timeshifting will never work with it. It's a limitation of the Kodi code, when you do things this way it jumps through a handful of hoops internally and never sets a magic 'seekable' flag. To flag 'seekable' you must handle the stream yourself, and when you do DS Player doesn't do it's tricks.

I'm not sure how you would like me to proceed at this point; I certainly don't want to push you towards spending money on a service that ultimately isn't going to do what you want to do. I also don't know what the plans are for DS Player as a product, it seems to have been stagnant since the final Krypton release. But the truth is that if you want to use this PVR with DS Player successfully, you will need an HDHomeRun DVR engine and DS Player will need modifications.

I hate to say it, but I'm not sure that your needs are going to be able to be met here. If DS Player can be updated to not require use of the stream URL 'hack' method, in theory you should be able to use any PVR you want, including the current version(s) of this one.

FWIW, I didn't really look at the difference with going through recent channels yet.

Skyecairns
Posts: 38
Joined: Sun Jul 22, 2018 6:58 am

Re: Unofficial Kodi PVR Client for HDHomeRun DVR subscribers

Post by Skyecairns » Fri Feb 22, 2019 11:15 am

Is it possible to change the way the recorded shows are named? My shows are usually named as follows:
Name of show S02E17 19720121 [20190222-1730]. Is it possible to change it as follows:
Name of show S02E17 Name of Episode.
Also is it possible to use one's own xmltv file for the guide? I think not. :-(

NYPlayer
Posts: 3538
Joined: Fri Apr 17, 2009 11:45 am
Device ID: 104112F4,104162C4,10438DAD,10438DF5,10701381,13147C7B,131A192A
Location: Portland OR, 97217

Re: Unofficial Kodi PVR Client for HDHomeRun DVR subscribers

Post by NYPlayer » Fri Feb 22, 2019 11:24 am

Skyecairns wrote:
Fri Feb 22, 2019 11:15 am
Is it possible to change the way the recorded shows are named? My shows are usually named as follows:
Name of show S02E17 19720121 [20190222-1730]. Is it possible to change it as follows:
Name of show S02E17 Name of Episode.
Also is it possible to use one's own xmltv file for the guide? I think not. :-(
This plugin does not handle file naming it is the function of the HDHomeRun DVR... You cannot use your own XMLTV file as it gets the data from the HDHomeRun servers.

gilbo125
Posts: 9
Joined: Wed Feb 14, 2018 12:24 pm

Re: Unofficial Kodi PVR Client for HDHomeRun DVR subscribers

Post by gilbo125 » Fri Feb 22, 2019 1:15 pm

When I try to record something, I get an ERROR "Could not save the timer. Check the log for more information about this message."

Any thoughts?

2019-02-22 15:06:15.693 T:8259 ERROR: CreateFromAttributes: Unable to resolve timer type (0x1, 0xa, 424516092)
2019-02-22 15:06:15.902 T:8259 ERROR: AddOnLog: HDHomeRun DVR PVR Client: PVR_ERROR AddTimer(const PVR_TIMER&) failed due to an exception: http request on url [http://api.hdhomerun.com/api/recording_ ... 1550865600] failed with http response code 403 (1)
2019-02-22 15:06:15.903 T:8259 ERROR: AddTimer: Add-on 'zuki.pvr.hdhomerundvr:api.hdhomerun.com' returned an error: the command failed
2019-02-22 15:06:48.689 T:8314 ERROR: CreateFromAttributes: Unable to resolve timer type (0x1, 0xa, 424516092)

gilbo125
Posts: 9
Joined: Wed Feb 14, 2018 12:24 pm

Re: Unofficial Kodi PVR Client for HDHomeRun DVR subscribers

Post by gilbo125 » Fri Feb 22, 2019 1:20 pm

gilbo125 wrote:
Fri Feb 22, 2019 1:15 pm
When I try to record something, I get an ERROR "Could not save the timer. Check the log for more information about this message."

Any thoughts?

2019-02-22 15:06:15.693 T:8259 ERROR: CreateFromAttributes: Unable to resolve timer type (0x1, 0xa, 424516092)
2019-02-22 15:06:15.902 T:8259 ERROR: AddOnLog: HDHomeRun DVR PVR Client: PVR_ERROR AddTimer(const PVR_TIMER&) failed due to an exception: http request on url [http://api.hdhomerun.com/api/recording_ ... 1550865600] failed with http response code 403 (1)
2019-02-22 15:06:15.903 T:8259 ERROR: AddTimer: Add-on 'zuki.pvr.hdhomerundvr:api.hdhomerun.com' returned an error: the command failed
2019-02-22 15:06:48.689 T:8314 ERROR: CreateFromAttributes: Unable to resolve timer type (0x1, 0xa, 424516092)
Whoops... looks like my DVR subscription is on hold. DOH!

Locked