YoutubeExplode: GetVideoAsync fails on unavailable videos
I’m using the latest version 4.3.3 and got the error message: Video [KOOtkK1F734] is not available and cannot be processed. Code: 150. Reason: This video is not available..
. Its Youtube url is: https://www.youtube.com/watch?v=KOOtkK1F734
.
Details:
at YoutubeExplode.YoutubeClient.<GetVideoInfoAsync>d__35.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at YoutubeExplode.YoutubeClient.<GetVideoAsync>d__38.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
at Web.Controllers.WebApi.FilesController.<GetYoutubeInfoByYoutubeVideoUrl>d__8.MoveNext() in
Thanks in advance for any help. Cheers.
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 20 (11 by maintainers)
@tuanbs this is a different issue #164 is what you are looking for.
I’m not sure and I did not stop to study.
Seens youtube-dl use a common User-Agent
Mozilla/5.0 (X11; Linux x86_64; rv:59.0) Gecko/20100101 Firefox/59.0
YoutubeExplode use exclusive User-Agent.YoutubeExplode (github.com/Tyrrrz/YoutubeExplode)
If someone with error this video is not available, want try change User-Agent header.
Maybe it will not change anything, but it does not hurt to try.