Unofficial Kodi HDHomeRun DVR PVR Client

Kodi Community Development

Moderator: TVJunkie198

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

Re: Unofficial Kodi HDHomeRun DVR PVR Client

Post by djp952 »

gregeeh wrote:
Sun Apr 12, 2020 6:03 pm
But only armhf = ARMv7a, hard-float, 32-bit worked without errors.
That's the one, then! Sometimes ARM is a bit of a crap-shoot for Linux, you can figure it out by examining the binaries from the OS/apps, but there are so few choices it's fastest to just try one until it works. I think it's still more common for Linux on ARM to be that "x32" (32-bit userspace / 64-bit kernel) than to find a true 64-bit setup.

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

Re: Unofficial Kodi HDHomeRun DVR PVR Client

Post by djp952 »

leerandall wrote:
Sun Apr 12, 2020 6:35 pm

Following your procedure, the resulting recorded_files.json does indeed show the Live PD directory:

{"SeriesID":"C13357824ENQQ81","Title":"Live PD","Category":"series","ImageURL":"http://img.hdhomerun.com/titles/C133578 ... 2005096785},

In the process, I noticed that I was also missing the Saturday Night Live directory in Kodi.

{"SeriesID":"C183890ENY0BD","Title":"Saturday Night Live","Category":"series","ImageURL":"http://img.hdhomerun.com/titles/C183890 ... 2947043040},

ETA: This is a fairly new issue, although I cannot say exactly when it began. I haven't updated Kodi in quite a while. The last thing I DID update is the PVR to ver. 3.2.1 whenever that was released.
Wow, that's extremely interesting. What version of the DVR engine are you running? Neither of these entries are individual recordings, they are missing a lot of information, like how to play it. There are also tags I've never seen before. How did you create the recording rules for these, was it via the HDHomeRun app or something else? EpisodesURL does seem to imply some new 'folder' concept, I have no idea what UpdateID is for.

In order for a recording to show up in Kodi via this PVR right now, it needs to find entries that look more like this:

{"Category":"series","ChannelAffiliate":"ABC","ChannelImageURL":"http://img.hdhomerun.com/channels/US212 ... itle":"The Reckoning","FirstAiring":1,"ImageURL":"http://img.hdhomerun.com/titles/C107773 ... Annalise's disappearance leads to panic and paranoia as Michaela and Connor consider taking a deal in their cases; everyone mourns Asher's death as Gabriel holds on to key details about his murder.","Title":"How to Get Away With Murder","Filename":"How to Get Away With Murder S06E11 20200409 [20200410-0201].mpg","PlayURL":"http://192.168.0.220:50000/recorded/pla ... d=0f4f36c1"}

Without the PlayURL and CmdURLvalues, there is nothing I can do with the recording, so it will be omitted.

This could be something new that I am just not aware of, can you do one more thing for me? Can you hit the "EpisodesURL" for those series (SNL / Live PD) and see if you get back a list of the actual recordings? In either case I'll have to consult with SiliconDust if I can't duplicate this here, but that EpisodesURL, if it works to show the individual recordings, is a good start.

I'm sorry for the difficulty, this is quite honestly the first time I've ever seen this. I'm very thankful for the report and the willingness to take the time to help get to the bottom of it leerandall !

leerandall
Posts: 697
Joined: Sat Mar 16, 2013 5:49 pm
Device ID: 131102D9, 1326E147

Re: Unofficial Kodi HDHomeRun DVR PVR Client

Post by leerandall »

I'm currently running HDHR DVR version 20200318. Here's what I get back from the EpisodesURL for Live PD:

Code: Select all

[{"Category":"series","ChannelImageURL":"http://img.hdhomerun.com/channels/US51529.png","ChannelName":"AETVHD","ChannelNumber":"241","EndTime":1586660400,"EpisodeNumber":"S04E55","EpisodeTitle":"Live PD -- 04.11.20","FirstAiring":1,"ImageURL":"http://img.hdhomerun.com/titles/C13357824ENQQ81.jpg","OriginalAirdate":1586563200,"ProgramID":"EP025265570370","RecordEndTime":1586660400,"RecordStartTime":1586653200,"RecordSuccess":1,"SeriesID":"C13357824ENQQ81","StartTime":1586653200,"Synopsis":"Emmy-winning documentary series like \"Intervention\" and \"Born This Way\" illustrate A&E Network's commitment to provocative, culturally relevant programming. Fitting perfectly alongside such projects is \"Live PD,\" which shines a light on the hot-button issue of policing in America by presenting a transparent look at law enforcement on duty. Incorporating dash cams along with fixed rig and handheld cameras, the series captures the work of a mix of urban and rural police forces on typical Friday and Saturday nights. As host, veteran journalist Dan Abrams gives insight into what viewers are seeing in real time.","Title":"Live PD","Filename":"Live PD S04E55 20200411 [20200412-0100].mpg","PlayURL":"http://192.168.1.18:53123/recorded/play?id=ea679719","CmdURL":"http://192.168.1.18:53123/recorded/cmd?id=ea679719"},

{"Category":"series","ChannelImageURL":"http://img.hdhomerun.com/channels/US51529.png","ChannelName":"AETVHD","ChannelNumber":"241","EndTime":1586570400,"EpisodeNumber":"S04E54","EpisodeTitle":"Live PD -- 04.10.20","FirstAiring":1,"ImageURL":"http://img.hdhomerun.com/titles/C13357824ENQQ81.jpg","OriginalAirdate":1586476800,"ProgramID":"EP025265570369","RecordEndTime":1586570400,"RecordStartTime":1586566801,"RecordSuccess":1,"SeriesID":"C13357824ENQQ81","StartTime":1586566800,"Synopsis":"Emmy-winning documentary series like \"Intervention\" and \"Born This Way\" illustrate A&E Network's commitment to provocative, culturally relevant programming. Fitting perfectly alongside such projects is \"Live PD,\" which shines a light on the hot-button issue of policing in America by presenting a transparent look at law enforcement on duty. Incorporating dash cams along with fixed rig and handheld cameras, the series captures the work of a mix of urban and rural police forces on typical Friday and Saturday nights. As host, veteran journalist Dan Abrams gives insight into what viewers are seeing in real time.","Title":"Live PD","Filename":"Live PD S04E54 20200410 [20200411-0100].mpg","PlayURL":"http://192.168.1.18:53123/recorded/play?id=d03f918e","CmdURL":"http://192.168.1.18:53123/recorded/cmd?id=d03f918e"}]

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

Re: Unofficial Kodi HDHomeRun DVR PVR Client

Post by djp952 »

This is looking like a problem with the DVR engine. I was able to get the "folder" type information you got by adding a "?DisplayGroupID=xxxx" to the query, but for me that returned the information like that for all series, not just one or two. DisplayGroupID is also deprecated and as far as I know isn't used anymore.

Is version 20200318 what you see when you:

- Navigate to http://my.hdhomerun.com/discover
- Navigate to the "DiscoverURL" of the item with the "StorageID=" value

The newest version of the DVR engine I am aware of is 20200225, as opposed to 20200318, which is listed as a client-side application change only.

If this change is expected and permanent, I can handle it by chasing those EpisodeURL values, but I'm really thinking this is not working right. I added a new series recording using the latest HDHomeRun app and still got the individual recording data back, not the series-level JSON data.

leerandall
Posts: 697
Joined: Sat Mar 16, 2013 5:49 pm
Device ID: 131102D9, 1326E147

Re: Unofficial Kodi HDHomeRun DVR PVR Client

Post by leerandall »

I can see no way to post a screenshot, so I put it up on my OneDrive, here:

https://1drv.ms/u/s!AmC2D9qWVVZHiUMnsz8ibnW2G5m4

ETA: Just so you're getting all the information you might need, I've copied/pasted the discover output and recorded_files.json output into files. Here are links:

https://1drv.ms/t/s!AmC2D9qWVVZHiUXersF1J0wz72RZ
https://1drv.ms/t/s!AmC2D9qWVVZHiURw8wVAvhlZ-4AH

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

Re: Unofficial Kodi HDHomeRun DVR PVR Client

Post by djp952 »

leerandall wrote:
Sun Apr 12, 2020 8:12 pm
I can see no way to post a screenshot, so I put it up on my OneDrive, here:

https://1drv.ms/u/s!AmC2D9qWVVZHiUMnsz8ibnW2G5m4

ETA: Just so you're getting all the information you might need, I've copied/pasted the discover output and recorded_files.json output into files. Here are links:

https://1drv.ms/t/s!AmC2D9qWVVZHiUXersF1J0wz72RZ
https://1drv.ms/t/s!AmC2D9qWVVZHiURw8wVAvhlZ-4AH
Perfect! I'll try to find out from SD what's going on here.

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

Re: Unofficial Kodi HDHomeRun DVR PVR Client

Post by djp952 »

SD confirmed in the Developer forum that this is a new change and will be the default moving forward. It will take me a bit of time to make the necessary adjustments, but I might be able to shoot you a beta version as early as this evening to try out and see if it clears up the problem. They provide a backwards-compatible mechanism I can use as well so it shouldn't break the older RECORD engine support (they are pretty cool like that).

More as I have it!

leerandall
Posts: 697
Joined: Sat Mar 16, 2013 5:49 pm
Device ID: 131102D9, 1326E147

Re: Unofficial Kodi HDHomeRun DVR PVR Client

Post by leerandall »

Thank you for following-up on this. It's much appreciated.

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

Re: Unofficial Kodi HDHomeRun DVR PVR Client

Post by djp952 »

Alright leerandall, let's see if this fixes things for you. Fingers crossed.

Version 3.2.2~beta1 - April 13, 2020
  • Update cURL library to version 7.69.1
  • Adapt to HDHomeRun RECORD engine 20200318 breaking changes
  • Omit reporting of original air date for programs of type News/Current Affairs unless a specific season/episode has been specified
This beta release implements a quick-fix for HDHomeRun RECORD version 20200318 (Android). The schema of the data returned from HDHomeRun RECORD by default has changed in a way that would result in the PVR showing no recordings when loaded from this RECORD instance. SiliconDust indicated this will be the path forward for RECORD and provided us with a backwards-compatible way of handling it now (thanks again SD!). I see no problems when running against my 20200225 RECORD instance.

This has had extremely limited testing at this point, for example I have not set up a second RECORD (which I intend to do on Android specifically this time) to ensure that all available engines will be aggregated, but it should be OK.

This change also causes a measurable performance impact to loading recordings. It's not much, but for me I'm seeing it take roughly 10% longer to load the recordings. This is due to having to make multiple requests to RECORD now, one per series, instead of making one big "show me the recordings" call, and a need to de-duplicate the data from what I assume to be a glitch in RECORD. I've added a Backlog item to refactor recordings yet again to take advantage of a feature in RECORD to know when a series has specifically changed and should be reloaded. Watch out for any RECORD engine glitching every 10 minutes or so, not sure what the impact of slamming it with multiple HTTP requests like this will be.

Link to the beta release (OneDrive) below. Note that like all betas, this needs to be manually installed. You can roll back by using the "Update" function in Kodi to reinstall the prior release. If you're good, leave the beta in place and it will auto-update to the formal version when it's ready.

https://1drv.ms/u/s!AgEGEEVzGNq-jI16xDq ... A?e=u92jP5

Good luck - let me know how it works out!

leerandall
Posts: 697
Joined: Sat Mar 16, 2013 5:49 pm
Device ID: 131102D9, 1326E147

Re: Unofficial Kodi HDHomeRun DVR PVR Client

Post by leerandall »

Thank you. But I've never had to manually install an add-on, so I could use some basic instructions to do so. Thanks.

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

Re: Unofficial Kodi HDHomeRun DVR PVR Client

Post by djp952 »

leerandall wrote:
Mon Apr 13, 2020 4:25 pm
Thank you. But I've never had to manually install an add-on, so I could use some basic instructions to do so. Thanks.
Install the same way you did originally. Download the appropriate .zip (x86 or x64) from the link onto the Windows box. From Kodi, go into Add-ons / Install from .,zip file and browse to that .zip.

Basically treat it as a first time install. Let me know if you run into any trouble! I'll be online later and the folks here are super helpful and beat me to the punch a lot too!

On phone, sorry if terse sounding :) I can't function without a keyboard.

gregeeh
Posts: 28
Joined: Thu Apr 09, 2020 8:27 pm
Location: Sydney, Australia

Re: Unofficial Kodi HDHomeRun DVR PVR Client

Post by gregeeh »

Hi,

I'm having an issue where recordings are not starting. They are added in CoreELEC 9.2.2 Kodi 18.6. The recording also comes up in the "Next Recording" box in the TV Library, but it never starts.

Image

Image

I have another recording "The Bold & The Beautiful" which was setup on another client running LibreELEC Kodi 17 and it's settings are the same, but it works.

What stupid thing am I doing wrong?

TIA

Greg

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

Re: Unofficial Kodi HDHomeRun DVR PVR Client

Post by djp952 »

Probably nothing you did wrong at all.

The "Next Recording" and anything in "Timers" (not "Timer Rules") is based on metadata and is not necessarily 100% indicative of what the HDHomeRun DVR will actually decide to do. It's pretty accurate these days thanks to SD exposing some extra stuff to check, but in the end the RECORD (DVR) engine calls the shots.

One reason something won't record is if the DVR thinks it already recorded it. This includes any specific episodes that were recorded in the past but were deleted. Unless you do a "delete and re-record", it will never record that episode again. I assume some programs might not have enough guide data for that to be reliable, I think news programs are like this, but I would expect something like MasterChef to have accurate season/episode data. I wouldn't expect it to show up as Next Recording in this case though, the newer data should prevent that since it will be flagged that way.

The HDHomeRun DVR log file (in the HDHomeRun share -> YYYYMMDD.log) might provide specific insight as to why it didn't record. I believe the times in there are all UTC so you'll have to adjust for your local time zone to find the right portion of the log.

If the HDHomeRun log file doesn't provide the proper clue(s), I think the best course of action would be to ask SiliconDust about it. They should be able to look at your Recording Rules and the DVR logs and know exactly why it decided not to record.

Sorry I can't be of more specific help!

leerandall
Posts: 697
Joined: Sat Mar 16, 2013 5:49 pm
Device ID: 131102D9, 1326E147

Re: Unofficial Kodi HDHomeRun DVR PVR Client

Post by leerandall »

djp952 wrote:
Mon Apr 13, 2020 5:10 pm
leerandall wrote:
Mon Apr 13, 2020 4:25 pm
Thank you. But I've never had to manually install an add-on, so I could use some basic instructions to do so. Thanks.
Install the same way you did originally. Download the appropriate .zip (x86 or x64) from the link onto the Windows box. From Kodi, go into Add-ons / Install from .,zip file and browse to that .zip.

Basically treat it as a first time install. Let me know if you run into any trouble! I'll be online later and the folks here are super helpful and beat me to the punch a lot too!

On phone, sorry if terse sounding :) I can't function without a keyboard.
I installed the 3.2.2~beta1 and it corrects the problem I was having. Thanks a bunch!

gregeeh
Posts: 28
Joined: Thu Apr 09, 2020 8:27 pm
Location: Sydney, Australia

Re: Unofficial Kodi HDHomeRun DVR PVR Client

Post by gregeeh »

djp952 wrote:
Tue Apr 14, 2020 1:36 pm
The HDHomeRun DVR log file (in the HDHomeRun share -> YYYYMMDD.log) might provide specific insight as to why it didn't record. I believe the times in there are all UTC so you'll have to adjust for your local time zone to find the right portion of the log.
I'm in Australia (UTC +10) and the program was due to start at 7:25pm (5 mins padding) so if my maths is correct that's 9:25AM UTC.

Here's the DVR log for around that time.

https://pastebin.com/embed_js/bc1rr7Cn

Note: When it had not started recording by 7:32PM I went into the EPG, selected the same program but on another channel but same network, right clicked and selected record. Both channels were now showing they were recording.

EDIT: Looks to me like the logs are showing the recording started on time. But there was no indication at all in Kodi. No Recording message in the TV library, No pop-up message saying recording started and no recording red dot in the EPG. I never looked at the NAS though to see if files were being created.

Post Reply