witnessmenow / arduino-youtube-api

A wrapper around the youtube api for arduino
MIT License
143 stars 48 forks source link

not able to parse correctly #24

Closed elan22 closed 4 years ago

elan22 commented 4 years ago

Hi, Not sure if this is just me seeing this but I could not get the getChannelStatistics to give back results and after digging ended finding out that for some reason the response string being return had some chars (1f3) right at the beginning and that seemed to mess with the parser. doing this: String response = sendGetToYoutube(command); //recieve reply from youtube response.remove(0,3);

seemed to solve the issue.

witnessmenow commented 4 years ago

This was fixed in #23 which was released yesterday.

You would have to update your YouTube library (to v2.0) and Arduino JSON library (to v6.x)

V2 of this library should be much more memory efficient and probably faster

On Fri, 22 May 2020, 08:07 elan22, notifications@github.com wrote:

Hi, Not sure if this is just me seeing this but I could not get the getChannelStatistics to give back results and after digging ended finding out that for some reason the response string being return had some chars (1f3) right at the beginning and that seemed to mess with the parser. doing this: String response = sendGetToYoutube(command); //recieve reply from youtube response.remove(0,3);

seemed to solve the issue.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/witnessmenow/arduino-youtube-api/issues/24, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAL5PQQX5VRH6LHGGDEDPELRSYQEHANCNFSM4NHRMYKQ .

elan22 commented 4 years ago

aah, I was struggling with this for while now and didn't even check for updates. Thanks for your work