iBicha / playlet

The unofficial, privacy driven, YouTube client for Roku
GNU Affero General Public License v3.0
277 stars 11 forks source link

Handle "The video returned by YouTube isn't the requested one" errors #349

Closed iBicha closed 3 months ago

iBicha commented 3 months ago

When loading video details, we're only retrying in case of a random HTTP/0.9 when not allowed.

In some cases, Invidious can return a VideoNotAvailableException("The video returned by YouTube isn't the requested one") https://github.com/iv-org/invidious/blob/99a5e9cbc44daa4555f36b43bc4b7246aee454c9/src/invidious/videos/parser.cr#L154

In this case it might be worth waiting a couple of seconds and trying again.

iBicha commented 3 months ago

After a second thought, Playlet should probably not do anything to handle such error - workarounds needs to be done in Invidious where there's more context on the request