YoutubeExplode: Unable to process controversial videos
As an example, this political parody Youtube link has restricted content that requires confirmation: (may be offensive or inappropriate for some viewers)
https://www.youtube.com/watch?v=BRi-UouACL8
Once you agree, you get this URL:
https://www.youtube.com/watch?v=BRi-UouACL8&bpctr=1522215065
With either URL in the DemoWpf program, I get this exception:
YoutubeExplode.Exceptions.VideoUnavailableException
HResult=0x80131500
Source=YoutubeExplode
StackTrace:
at YoutubeExplode.YoutubeClient.<GetVideoInfoAsync>d__35.MoveNext() in C:\Code\YoutubeExplode\YoutubeExplode\YoutubeClient.Video.cs:line 82
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.ConfiguredTaskAwaitable1.ConfiguredTaskAwaiter.GetResult() at YoutubeExplode.YoutubeClient.<GetVideoAsync>d__38.MoveNext() in C:\Code\YoutubeExplode\YoutubeExplode\YoutubeClient.Video.cs:line 206 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter
1.GetResult()
at DemoWpf.ViewModels.MainViewModel.<GetData>d__45.MoveNext() in C:\Code\YoutubeExplode\DemoWpf\ViewModels\MainViewModel.cs:line 138
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 15 (6 by maintainers)
None of them work with
get_video_info
, thebpctr=9999999999
trick works with watch page which we currently do not parse for video info…