Open unixfox opened 1 month ago
Thank you very much for this. Looking at instance yewtu.be which uses invidious-custom, it seems to be working just as expected, exactly as described in my linked issue, and with a 100% success rate.
Thank you for this great work - this is a huge step towards making Invidious convenient to use again. For me personally, it solves the entire problem.
The only thing I can potentially suggest is for the video thumbnail to be loaded and displayed on the page, separately from the broken video player. But that would be just a nice-to-have feature, and I'm guessing it may not be trivial to implement, when the official Youtube website just shows a black error screen, with the thumbnail nowhere to be seen.
Description
This PR aims to avoid throwing a raw error and instead display all the data that we can extract from the /next endpoint but without displaying the "player" (video.js) element.
This is one big step towards https://github.com/iv-org/invidious/pull/4985. Invidious will have to be able to display the watch page even when YouTube is blocking the IP.
This will give the same result as on www.youtube.com:
This way the user can still view the title of the video, accessing the channel page, viewing the comments and much more which is not yet blocked.
What changed?
TODO
Try these videos ID for testing - on both a blocked IP and a not blocked one
Fixes