GithubHelp home page GithubHelp logo

afruitpie / convertify Goto Github PK

View Code? Open in Web Editor NEW
30.0 30.0 5.0 425 KB

iOS: Convert Spotify links to Apple Music and vice versa

Home Page: https://haydenhong.com/projects/convertify

License: MIT License

Swift 100.00%
alamofire apple convert music spotify spotifylogin swift

convertify's People

Contributors

afruitpie avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

convertify's Issues

Spotify API limited to 100 Songs per request

Hello,

I just tried to use your app to move my Spotify Playlist to Apple Music and I noticed that some Playlists were cut off somewhere in the middle. So I came here to see what the issue is. I noticed that the playlists are always cut after 100 songs and that Spotify's response JSON literally a parameter called limit. So I went to the Spotify Dev Documentation and it said that all requests are limited to 100 items max. If we want more, we should use the offset parameter. I already fixed it, however I don't have a Apple Developer Enrolment and thus can't sign into my Apple Music Account :(
So instead of just keeping the fix to myself, I thought I would notify you about it.
Here is everything that needs to be adjusted:
In SpotifyPlaylistSercher.getTrackPlaylist:

AF.request("https://api.spotify.com/v1/playlists/\(playlistID)/tracks", headers: headers)

to

AF.request("https://api.spotify.com/v1/playlists/\(playlistID)/tracks?offset=100", headers: headers)

The offset is correct like this. Songs start at 0, so if you set the offset to 100, It will send with the 101st song.

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.