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

[bug] get_playlist always returns 200 items #4

Closed lovegaoshi closed 11 months ago

lovegaoshi commented 11 months ago

steps to reproduce:

const { get_playlist, search } = require('libmuse');

const main = async () => {
  const val = await get_playlist('PLv4y5OVUmyFjx4uf_sQunpq8nlQiar_iQ', {
    limit: 800,
  });
  console.log(val.tracks.length);
};

// expected output: 800 (or 900 as in ytmusicapi)
// actual output: 200
main();

ytmusicapi counterpart:

from ytmusicapi import YTMusic
yt = YTMusic()
print(len(yt.get_playlist('PLv4y5OVUmyFjx4uf_sQunpq8nlQiar_iQ', limit=800)['tracks']))
# output is 900

possible fix: https://github.com/lovegaoshi/muse/commit/641ebed0148576388200e2c5d117ecbb75ee6365 would do, as in ytmusicapi