omansak / libvideo

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

Count backslashes before quotes on JSON string #253

Closed hondek closed 1 year ago

hondek commented 1 year ago

Sometimes JSON have double (or more) backslashes before quote closing string, like this:

"keywords":["\\David Knopfler\\"

So i count backslashes and check if backslashes count is odd - and if it is we can go out of JSON string

problematic video id: dFrGOddNg_Y

omansak commented 1 year ago

fixed #250

gasand commented 1 year ago

Hi great job that you fixed that! Any plan to release a new version in nuget covering the fix?