youtube icon indicating copy to clipboard operation
youtube copied to clipboard

Search doesnt work

Open arghyagod-coder opened this issue 3 years ago • 3 comments

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>"

arghyagod-coder avatar Dec 11 '21 09:12 arghyagod-coder

Getting similar results. Can't put a finger on what's causing it.

reverendrainwater avatar Dec 15 '21 22:12 reverendrainwater

Possible that the YT update is causing this, the people need you @lithdew !

RomanSter avatar Dec 16 '21 13:12 RomanSter

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

johnhorsema avatar Dec 19 '21 13:12 johnhorsema