Giter Site home page Giter Site logo

Comments (9)

zachomedia avatar zachomedia commented on May 24, 2024

@kane090 The songs page loads in 100 song increments. Can you check the console for any errors?

from apple-music-webplayer.

kane090 avatar kane090 commented on May 24, 2024

I am using Chrome on Windows 10 and this is what I got from the console.

The SSL certificate used to load resources from will be distrusted in M. Once distrusted, users will be prevented from loading these resources. See for more information.
music.zacharyseguin.ca/:1 The SSL certificate used to load resources from https://is4-ssl.mzstatic.com will be distrusted in M70. Once distrusted, users will be prevented from loading these resources. See https://g.co/chrome/symantecpkicerts for more information.
music.zacharyseguin.ca/:1 The SSL certificate used to load resources from https://is2-ssl.mzstatic.com will be distrusted in M70. Once distrusted, users will be prevented from loading these resources. See https://g.co/chrome/symantecpkicerts for more information.
music.zacharyseguin.ca/:1 The SSL certificate used to load resources from https://is5-ssl.mzstatic.com will be distrusted in M70. Once distrusted, users will be prevented from loading these resources. See https://g.co/chrome/symantecpkicerts for more information.
music.zacharyseguin.ca/:1 The SSL certificate used to load resources from https://is3-ssl.mzstatic.com will be distrusted in M70. Once distrusted, users will be prevented from loading these resources. See https://g.co/chrome/symantecpkicerts for more information.
music.zacharyseguin.ca/:1 The SSL certificate used to load resources from https://is1-ssl.mzstatic.com will be distrusted in M70. Once distrusted, users will be prevented from loading these resources. See https://g.co/chrome/symantecpkicerts for more information.

from apple-music-webplayer.

zachomedia avatar zachomedia commented on May 24, 2024

Can you run the two following commands in the console?:

MusicKit.getInstance().api.library.songs(null, { limit: 100 }).then(r => console.log(r.length));
MusicKit.getInstance().api.library.songs(null, { offset: 100, limit: 100 }).then(r => console.log(r.length));

from apple-music-webplayer.

kane090 avatar kane090 commented on May 24, 2024

I ran the commands and this is what I got:

MusicKit.getInstance().api.library.songs(null, { limit: 100 }).then(r => console.log(r.length));
Promise {}
VM81:1 98
MusicKit.getInstance().api.library.songs(null, { offset: 100, limit: 100 }).then(r => console.log(r.length));
Promise {}
VM97:1 99

from apple-music-webplayer.

zachomedia avatar zachomedia commented on May 24, 2024

Can you look at the request to https://api.music.apple.com/v1/me/library/songs in the Network tab, and see if there is a next value in the response/what the value is?

from apple-music-webplayer.

kane090 avatar kane090 commented on May 24, 2024

{next: "/v1/me/library/songs?offset=100",…}
data
:
[{id: "i.2P0NDPNtxONpg1", type: "library-songs", href: "/v1/me/library/songs/i.2P0NDPNtxONpg1",…},…]
next
:
"/v1/me/library/songs?offset=100"

from apple-music-webplayer.

zachomedia avatar zachomedia commented on May 24, 2024

Interesting. Unfortunately, the next param doesn't get passed through in the response to my application. I just changed the logic to keep up on increasing the offset until the response contains 0 items. Can you try the songs view now?

from apple-music-webplayer.

kane090 avatar kane090 commented on May 24, 2024

Just tried the view. Every song shows up! Well done and thank you!

from apple-music-webplayer.

zachomedia avatar zachomedia commented on May 24, 2024

Great!

from apple-music-webplayer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.