djp952 / pvr.hdhomerundvr

Unofficial Kodi HDHomeRun DVR PVR Client
https://github.com/djp952/pvr.hdhomerundvr/wiki
Other
58 stars 9 forks source link

How to display channel name in recordings #127

Open timble70 opened 1 month ago

timble70 commented 1 month ago

The channel names are reported correctly in the guide but when I record a show I get a 7 letter code as seen in the photo.

Awesome addon. Wish I'd stopped using WMC years ago. Thanks. 20240608_075730

djp952 commented 1 week ago

Hi! Sorry for the long delay in getting back to you on this one.

The channel name you see is coming from the HDHomeRun Record data directly. For example, for this recording of mine it will show "WMARDT" no matter what that channel is named now, or how the addon/Kodi might be displaying it based on the options:

"Category": "series",

"ChannelAffiliate": "ABC", "ChannelImageURL": "https://img.hdhomerun.com/channels/US21230.png", "ChannelName": "WMARDT", "ChannelNumber": "512", "EndTime": 1714953600, "EpisodeNumber": "S34E20",

I looked at the code and I never did anything to try to remap the recording to the current channel, I'm just passing whatever the Record engine says. I could probably instead try to map the reported channel number back to the channel information and apply any rules/options? If the channel number no longer exists it would just report whatever it does now as a fallback?

So, let's say I changed the Interface / Preferred Channel Name format from "XMLTV station" to "XMLTV network" in the PVR addon options. For me, that changes channel 512 from "WMARDT" to "ABC" in the Guide. In this case, you would prefer the recording try to also say "ABC" rather than "WMARDT", correct?

I guess this would need to be an optional thing to not change how its behaved all along on anyone else, but I can give it a go as time allows? There may be some roadblock I'm not thinking of, but it seems pretty doable?

Glad you enjoy the addon, my apologies again for leaving you hanging for too long out here with no reply :)

timble70 commented 1 week ago

Thanks Michael. Yes. Exactly. It's no biggie, but just a bit neater and meaningful.

It's a brilliant addon and working seamlessly with the tuner and HD Homerun. I'd been using Win 7 Media Center, PCI Tuner cards and the Kodi addon until last month. But this current setup is infinitely better.

Not sure how popular the HD Homerun is down here in Australia, but it's a fantastic unit. Bit expensive here, but worth every cent. And your integration is absolutely superb.

Big thanks again! Awesome job.