afruitpie / convertify Goto Github PK
View Code? Open in Web Editor NEWiOS: Convert Spotify links to Apple Music and vice versa
Home Page: https://haydenhong.com/projects/convertify
License: MIT License
iOS: Convert Spotify links to Apple Music and vice versa
Home Page: https://haydenhong.com/projects/convertify
License: MIT License
Users must uninstall and reinstall the app to log in to a different Spotify account to convert playlists
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.
The application will continue to say it is converting even if the user denies access to their library.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.