dmunozv04 / iSponsorBlockTV

SponsorBlock client for all YouTube TV clients.
GNU General Public License v3.0
2.18k stars 90 forks source link

Add reconnect timeout option (mainly to make Shorts easier to watch) #120

Open Scoth42 opened 6 months ago

Scoth42 commented 6 months ago

Is your feature request related to a problem? Please describe. Currently, on some clients, you can't watch Shorts as it pops up a "You can't watch shorts with this device connected" or whatever it is. On mine at least (Roku), you can hit the Disconnect button on the Youtube app and it'll start playing the short. However, because iSponsorBlock reconnects very quickly, it'll abort the Short playback.

Describe the solution you'd like Add an option to change/increase the reconnect timeout. If you could set it to one minute or a little more, you could hit the Disconnect, watch the short, and it wouldn't reconnect until it was finished. You'd have to repeat that for each short, potentially, but it'd at least make them usable.

Describe alternatives you've considered Not sure if there'd be any way for it to detect a short was started or it was forcibly kicked and automatically not try to reconnect immediately or until manually restarted. I'm not super familiar with the Youtube APIs.

dmunozv04 commented 6 months ago

Adding that option would mean that iSponsorBlockTV would take that long to connect to the device, not skipping segments during that time. Sadly YouTube doesn't send a different disconnect reason when playing a short, nor a way to know that a short is about to start playing to be able to disconnect/wait until it's over

dmunozv04 commented 4 months ago

@Scoth42 I added an alternative solution a bit ago, detecting when a short starts playing and right after the disconnect playing it as a regular video