Unofficial Kodi HDHomeRun DVR PVR Client

Kodi Community Development

Moderator: TVJunkie198

Post Reply
signcarver
Expert
Posts: 9247
Joined: Wed Jan 24, 2007 1:04 am
Device ID: 10802091 131B34B7 13231F92 1070A18E 1073ED6F 15300C36
x 15

Re: Unofficial Kodi HDHomeRun DVR PVR Client

Post by signcarver »

One thing I noticed is images aren't secure and I believe android now "forces" https for most connections and every few months it seems it forces it a bit more. (I even tried going to a few random ones with https and it fell back to http)... I believe the apk can state sites permitted by http and may not state img.hdhomerun.com

I did see this when searching for this issue.

"From Android 9 Pie now, requests without encryption will never work. And by default, the System will expect
you to use TLS by default. You can read this feature here So if you only make requests via HTTPS you are safe. But what about apps that make requests through different sites, for instance, browser-like apps."

and they gave possible solutions in the manifest

Edit: in looking at Guide Data, it appears that all images are http, are any images showing in kodi with hdhomerun related images (i.e. posters)?

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

Re: Unofficial Kodi HDHomeRun DVR PVR Client

Post by djp952 »

It occurred to me that I have an Android phone with Kodi on it (duh). Pixel 4 with Android 11. Here's what I found:

I still had all my channel logos and posters, etc, but that's because they are being cached by Kodi, the HTTP requests are all failing on my phone today as well. Uninstall/reinstall Kodi and bubkis, no images at all from HDHomeRun sources. I've used Kodi on this device a number of times since the upgrade to Android 11, and I still had that artwork for a show we've only been recording for a couple weeks, so this definitely worked fine very recently.

I don't *think* it's an Android thing unless maybe a recent security update to the platform may be to blame? Same Kodi version, same URLs, same android version ... maybe Google pulled a Microsoft on us and "fixed" something?

No issues on Windows, haven't tried Linux.

signcarver
Expert
Posts: 9247
Joined: Wed Jan 24, 2007 1:04 am
Device ID: 10802091 131B34B7 13231F92 1070A18E 1073ED6F 15300C36
x 15

Re: Unofficial Kodi HDHomeRun DVR PVR Client

Post by signcarver »

I just tried on my nexus player (android 7) and same thing... however kodi did update when it launched and failed to install/update a few dependencies but it still behaved the same way (official app)

It still appears that only the http requests are the ones that are having problems and/or img.hdhomerun.com and only with android.

Ken.F
Posts: 2307
Joined: Fri Apr 05, 2013 9:20 am
Device ID: 1041A706, 1043EB32, 104BAD9E, 13168DC5, 1322A7AC
Location: West Rockhill, PA
x 1

Re: Unofficial Kodi HDHomeRun DVR PVR Client

Post by Ken.F »

djp952 wrote: Fri Oct 16, 2020 3:10 pm I don't *think* it's an Android thing...
Good to know. Eventually I did get an ADB connection to my Chromecast but I guess I don't need to use it now. FWIW the issue I had getting ADB to connect was the Chromecast had a popup asking for permission to let my computer connect to it. Since the Chromecast is in a different room I didn't see the popup.

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

Re: Unofficial Kodi HDHomeRun DVR PVR Client

Post by djp952 »

Ken.F wrote: Fri Oct 16, 2020 1:01 pm It looks like someone else isn't getting channel logos either.

viewtopic.php?p=364204#p364204
It looks like this is related to HTTP/2. People are also having problems with Kodi 18 on Linux/Android accessing The Movie Database to get posters and metadata for movies. I was able to confirm this on a Vero 4K at the command line (cURL 7.52.1, which is very old, Kodi 18.8 uses cURL 7.67.0):

HTTP/2 enabled (fails):

Code: Select all

~$ curl --http2 http://img.hdhomerun.com/channels/US19611.png -o test.jpg
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (56) Recv failure: Connection reset by peer
HTTP/2 not enabled (works):

Code: Select all

curl http://img.hdhomerun.com/channels/US19611.png -o test.jpg
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  4707  100  4707    0     0  55937      0 --:--:-- --:--:-- --:--:-- 56710
Sadly there is not anything I'm going to be able to do about this, it looks like Kodi Leia needs to use a newer version of libcurl that resolves the problem. I keep libcurl up to date so it's not affecting the PVR addon in and of itself. There is no mechanism to provide Kodi with the actual image for the channel logo, it has to be a URL. Meaning I can't download/store the image and hand it off to Kodi :(

My guess is that SD enabled HTTP/2 for the img.hdhomerun.com server(s) recently, and this is when things started to fall apart for Kodi :(

edit: It may not be the version of cURL I use, I actually specifically disable HTTP/2 for my connections; this may be why the PVR functions are still working. It would take some research to determine if the current version of cURL still has the problem, but that would probably be moot since the problem is within Kodi. I also thought about this more, and I *might* be able to do something if the problem will persist for Kodi; I may be able to download and store the channel logos locally and give Kodi a file:// URL rather than the actual URL. Again, that would take some research and time to work out, but if this starts to drag on I'll definitely look into it for you guys.

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

Re: Unofficial Kodi HDHomeRun DVR PVR Client

Post by djp952 »

It appears Kodi has this well in hand, and they already have a PR in the pipeline for Leia. I'll hold off on doing anything weird on my end.

The problem was reported as Cloudflare not allowing unencrypted HTTP/2 traffic, but it likely affects other providers too. Their proposed solution is to not use HTTP/2 on unencrypted (http://) requests, but it will also allow you to globally disable HTTP/2 via an advanced setting.

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

Re: Unofficial Kodi HDHomeRun DVR PVR Client

Post by djp952 »

Matrix FYI for everyone -- I updated everything for the Alpha 2 release and there was a casualty in the process. Kodi has switched to requiring a compiler with C++ 14 compatibility, so the raspbian-armhf platform needs to be dropped.

Before anyone freaks out, this was a relatively infrequently used ARMv6-based platform that was compatible with Raspbian Jessie. Jessie (and maybe Stretch) didn't actually support the ARMv7 chipset properly, which is why this platform came to be. In most cases, I think that the generic linux-armhf (ARMv7) build can be used in it's place, and I recommend that today for your typical Kodi distros like LibreELEC.

As we get closer to Matrix coming out I'll have to see what options there are for older RPi OSes like Stretch or if Matrix will only be available on Buster, and if there are any problems using the generic Linux build(s).

Probably not the end of the world, but next time Matrix goes out the cool little raspberry logo on the downloads page will disappear :(

Ken.F
Posts: 2307
Joined: Fri Apr 05, 2013 9:20 am
Device ID: 1041A706, 1043EB32, 104BAD9E, 13168DC5, 1322A7AC
Location: West Rockhill, PA
x 1

Re: Unofficial Kodi HDHomeRun DVR PVR Client

Post by Ken.F »

I noticed today the channel logos are working on my Chromecast. :)

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

Re: Unofficial Kodi HDHomeRun DVR PVR Client

Post by djp952 »

Yeah, Cloudflare must have changed something back, the Kodi release didn't happen yet AFAIK. My phone didn't get an update anyway, and it works now too. Maybe SD did some fancy reconfigurin' for us? Either way, glad that people will be getting their channel logos and series posters again! woot.

NedS
Silicondust
Posts: 1511
Joined: Mon Dec 10, 2018 12:38 pm
x 41

Re: Unofficial Kodi HDHomeRun DVR PVR Client

Post by NedS »

djp952 wrote: Thu Oct 22, 2020 2:57 pm Yeah, Cloudflare must have changed something back, the Kodi release didn't happen yet AFAIK. My phone didn't get an update anyway, and it works now too. Maybe SD did some fancy reconfigurin' for us? Either way, glad that people will be getting their channel logos and series posters again! woot.
Nick was able to tweak something in CF for the time being.

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

Re: Unofficial Kodi HDHomeRun DVR PVR Client

Post by djp952 »

NedS wrote: Fri Oct 23, 2020 12:47 am
djp952 wrote: Thu Oct 22, 2020 2:57 pm Yeah, Cloudflare must have changed something back, the Kodi release didn't happen yet AFAIK. My phone didn't get an update anyway, and it works now too. Maybe SD did some fancy reconfigurin' for us? Either way, glad that people will be getting their channel logos and series posters again! woot.
Nick was able to tweak something in CF for the time being.
Yay NickK! Many many thanks!

Post Reply