Tyrrrz / YoutubeExplode

Abstraction layer over YouTube's internal API
MIT License
2.98k stars 497 forks source link

YoutubeExplode.Exceptions.VideoUnavailableException: Video '5jv2S7BjUf8' is not available. #837

Closed Dopamax closed 3 weeks ago

Dopamax commented 1 month ago

Version

v6.4.3

Platform

.NET 8 / Ubunto v24.04

Steps to reproduce

YoutubeExplode.Exceptions.VideoUnavailableException: Video '5jv2S7BjUf8' is not available.
   at YoutubeExplode.Videos.VideoController.GetVideoWatchPageAsync(VideoId videoId, CancellationToken cancellationToken) in /_/YoutubeExplode/Videos/VideoController.cs:line 39

What the solution for this problem I spent one month for this, the app run on local but not on server production.

I tried to deploy the app on Azure cloud but it didn't worked, and I bought a vps to deploy on it but it didn't.

Details

image

Checklist

Tyrrrz commented 3 weeks ago

I don't know if it's related to the issue, but I would not recommend using YoutubeExplode with Blazor. Regardless of other problems you may encounter, CORS will most likely make it impossible to fetch certain resources or download streams.

Tyrrrz commented 3 weeks ago

I was able to fetch the video locally:

image

If it's not working only on your server environment, it might mean that the video's geofencing settings prevent you from accessing it in a specific location.