emresenyuva / youtube-music-api

Node.js Unoffical Youtube Music API
MIT License
116 stars 47 forks source link

Update search parser #3

Closed valeriangalliat closed 3 years ago

valeriangalliat commented 3 years ago

Seems that YouTube Music updated the format in their endpoints and that broke the search method.

I'm not sure if any of the other methods needs updating as I only use the search.

This code made the search work again for me and all the data looks good, just not fully sure about the views prop, right now it looks something like "views": "163M views", and I don't know if it used to be an integer before or if was already like this since I don't use this property.

Cheers!

tyuen11 commented 3 years ago

Hi! I am also using the api and encountered the problem of being unable to do search("query", "artist"). If I were to use your code locally, is there any changes I would need to make to get it working such as credentials?

valeriangalliat commented 3 years ago

As a quick fix you should be able to npm install valeriangalliat/youtube-music-api#update-search-parser until this is merged :)

tyuen11 commented 3 years ago

It seems that I am unable to do a search("query", "album"). Is it working on your end?

emresenyuva commented 3 years ago

It seems that I am unable to do a search("query", "album"). Is it working on your end?

i will update search function soon