Add option to sync Spotify favorites to Tidal playlist#164
Open
MaximStanko wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Context
I have a pretty large "Liked Songs" playlist on Spotify and I have currently been using this tool to migrate from Spotify to Tidal. I didn't want to keep all my old Spotify favorites, but just be able to have them as a Tidal playlist I can play if I want to, because there are thousands of songs in there which I don't listen to anymore.
Implementation
I added a
--favs-to-playlist PLAYLIST_NAMEoption to spotify2tidal, which takes the PLAYLIST_NAME and syncs Spotify favorites into that playlist (or creates it if it does not exist).Details
I used the already present code infrastructure for this, though I have copied some code from
sync_favoritesandsync_playlistwhich could be refactored to use some common function and remove that duplication. Although I don't think it's much of a deal, as these functions will most likely not change drastically in the future.