vixalien / muse

Youtube Music API (InnerTube) client for Deno, Node and the browser
https://deno.land/x/muse
MIT License
31 stars 5 forks source link

Adding search filter returns no result #3

Closed zWolfrost closed 11 months ago

zWolfrost commented 11 months ago

Adding a filter to the search function returns no result, or at least i think so. Did i at least do everything correctly?

Here is my code: search("Change Deftones", { filter: "songs" }).then(data => console.log(data));

Here is the result.

{
  top_result: null,
  did_you_mean: null,
  categories: [ { title: 'Songs', filter: 'songs', results: [Array] } ],    
  continuation: 'EqgDEg9DaGFuZ2UgRGVmdG9u...',
  autocorrect: null,
  filters: [
    'songs',
    'videos',
    'albums',
    'featured_playlists',
    'community_playlists',
    'artists'
  ]
}
zWolfrost commented 11 months ago

I'm an idiot, the results are in data.categories[0].results. Hope someone got a good laugh off of this 🤦‍♂️

vixalien commented 11 months ago

it's okay, and you are not an idiot :)