omansak / libvideo

A lightweight .NET library to download YouTube videos.
BSD 2-Clause "Simplified" License
538 stars 163 forks source link

Additional text encountered after finished reading JSON content #250

Closed gasand closed 1 year ago

gasand commented 1 year ago

Hi there! Thanks for the grat tool! I've encountered this error trying to download some YouTube videos... Try for example with video: dFrGOddNg_Y

Hope this helps!

[08:51:23 FTL] Newtonsoft.Json.JsonReaderException: Additional text encountered after finished reading JSON content: ;. Path '', line 1, position 66369. at Newtonsoft.Json.JsonTextReader.Read() at Newtonsoft.Json.Linq.JToken.Parse(String json, JsonLoadSettings settings) at Newtonsoft.Json.Linq.JToken.Parse(String json) at VideoLibrary.YouTube.d8.MoveNext() at System.Linq.Enumerable.First[TSource](IEnumerable1 source) at VideoLibrary.ServiceBase1.VideoSelector(IEnumerable1 videos) at VideoLibrary.ServiceBase1.d6.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at VideoLibrary.ServiceBase`1.d__5.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

........

hondek commented 1 year ago

Hi,

I sent pull request fixing this problem.