youtube
youtube copied to clipboard
Search doesnt work
Being used the code sample in readme, it doesnt work. Output:
panic: got malformed json searching for page 0 of query "animus vox": cannot parse JSON: cannot parse number: unexpected char: "\x00"; unparsed tail: "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00...\" scrolling=\"no\"></iframe></body></html>"
Getting similar results. Can't put a finger on what's causing it.
Possible that the YT update is causing this, the people need you @lithdew !
Maybe try this query: https://www.youtube.com/results?style=json&q=animus%20vox&page=0&hl=en
Replace https://github.com/lithdew/youtube/blob/master/client.go#L118 with https://www.youtube.com/results?style=json