Closed ngochoaitn closed 3 years ago
hi.
the complete exception is:
at YoutubeExplode.ReverseEngineering.Responses.WatchPage.<>c__DisplayClass11_0.<<GetAsync>b__0>d.MoveNext()
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at YoutubeExplode.Internal.Retry.<WrapAsync>d__1`1.MoveNext()
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at YoutubeExplode.Internal.Retry.<WrapAsync>d__1`1.MoveNext()
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
at YoutubeExplode.ReverseEngineering.Responses.WatchPage.<GetAsync>d__11.MoveNext()
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
at YoutubeExplode.Videos.VideoClient.<GetVideoFromWatchPageAsync>d__9.MoveNext()
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
at YoutubeExplode.Videos.VideoClient.<GetAsync>d__10.MoveNext()
thx for keeping this library up to the site
If you're using version 5, switch to version 6 preview 2, Youtube has a new cookie consent page that broke a lot
switching to 6.0.0-alpha2 did work for me
I forgot to mention, if you really need to use version 5 you can give the YoutubeClient a HttpClient that has following Cookie set: Name: CONSENT Value: YES+cb Path: / Domain: .youtube.com
Duplicate of #501
Function:
Channels.GetUploadsAsync
Channel Id: UC8WHyfTblB1QhzlJEZawLQw Exception:Thank.