kodi-pvr / pvr.hts

Kodi's Tvheadend HTSP client addon
GNU General Public License v2.0
135 stars 93 forks source link

Force disconnect from the server #507

Open Ulrar opened 3 years ago

Ulrar commented 3 years ago

Hi,

I have people using nvidia shields on their TV to run Kodi, with this TVHeadEnd plugin. Sometimes they shut the TV down, leaving the shield running with a channel open in the background, which will go on indefinitely (usually for days), using up a tuner for nothing.

Is there a way to force a disconnect from the server ? It looks like using the "drop connection" button in tvheadend doesn't work as the addon just instantly reconnects. If there isn't a way then it'd be a great addition imho.

Thanks

ksooo commented 3 years ago

Is there a way to force a disconnect from the server ?

No.

Sometimes they shut the TV down, leaving the shield running

Why don't they shut down the Shield? Using this setup myself, if I hit the off button on my remote, both the TV and the Shield shut down. "Problem" solved.

People would kill me if I disconnect from tvh when only the TV and not the Shield is shut down. Think about radio stations where people do not need the TV running to listen to the programme.

Ulrar commented 3 years ago

Why don't they shut down the Shield? Using this setup myself, if I hit the off button on my remote, both the TV and the Shield shut down. "Problem" solved.

That only works if your TV supports CEC, works on mine but sadly I'm the only one, my other users have old-ish TVs. It'd be nice if they could at least back out of a channel before they shut it down but they don't always do. I suspect it's just people falling asleep with the TV auto-shutting down.

people would kill me if I disconnect from tvh when only the TV and not the Shield is shut down. Think about radio stations where people do not need the TV running to listen to the programme.

Not a problem for me as I don't map any radio channels. In any case I only have 3 accounts outside of my home, it's just family, and I know when they're at work. Right now there's no chance someone is watching TV, but it's been holding one of my only two sat tuners on ITV2 for three days, I'm just hoping to find a way to force it to stop without having to disable the user.