Giter VIP home page Giter VIP logo

itunes-spotify-playlist-copier's Introduction

iTunes Spotify Playlist Copier

An Applescript which re-creates Spotify playlists within iTunes.

This script does NOT download or transfer songs, it creates playlists in iTunes with songs that are already in your library.

This was created for one very specific purpose, downloading songs from a third party such as Sidify, and automaticall re-creating your playlists within iTunes using that media.

Although it does not download the songs, it does provide a list of all songs that aren't in your iTunes Library, which can be pasted directly into Sidify Music Converter to download them so you can complete the playlist.

This process is now a bit different after a recent update. See below.

Requirements :

  • Mac OS (Tested on Sierra and High Sierra only)

  • iTunes installed ; not Apple Music

  • Spotify installed

Usage :

  • On spotify, open the playlist you wish to copy.

  • Open the script, and click run.
    iTunes will open, and the script will collect the titles of in your library.

  • Enter the name of the playlist. Note that if it already exsists in itunes, it will be emptied.

  • Enter the number of songs in the spotify playlist. This is displayed in spotify.

    The script will configure spotify (Mute, shuffle & repeat off), then it will wait for spotify to begin playing.

  • In spotify, double check that shuffle is off.

  • In spotify, play the first track in the playlist.

    The script will cycle through every song in the playlist, and search for a song with a matching title in your iTunes library. If you have a matching song in iTunes, it will be added to the iTunes playlist.

  • Once complete, the script will provide a list of URI's to songs that were missing in your iTunes library. These can be pasted into sidify to grab songs that you're missing.

Speed limit

The Spotify API hard limits the script at 100 tracks, if the script operates too fast.

For this reason, the scripts adds a one second delay between skipping songs on playlists containing over 100 songs.

Example uses :

Untitled.2.mov
Untitled.2.mov

Sidify Note

Sidify has been updated, and they've removed the ability to manually provide a list of URL's to download. Now, it will only download playlists which already exist in spotify.

Whilst an inconvinience, it doesn't render this programme useless.

A work around, for now, is to create a new playlist in spotify to act as a download list.

Copy the list of missing songs, and sanitize it by removing the commas.

It should just look like this :

spotify:track:6V9c2rDSlFKG1PFW56c7bA
spotify:track:2LwJLVCLJfgCsY7ViTAIcn
spotify:track:0DGzkmXGT5jrqSjaJ1EyL2
spotify:track:3PW8R9LHr6tvhdARHAqG9s
spotify:track:3AayefDdUFxivRs79bX7kV
spotify:track:5Rbj8akony3l0NNM5TjH1F
spotify:track:2eR2HzLN0Nww0ZfV5Ly1zv
spotify:track:0M0FvSNRZmDz0Z769rewlI
...

This can then be pasted into your download-playlist in spotify. Sidify can then download this playlist, and the media can be dragged directly into the incomplete playlist in iTunes.

Sample log

Screen Shot 2022-06-06 at 18 46 39

itunes-spotify-playlist-copier's People

Contributors

jdngray77 avatar

Watchers

 avatar

itunes-spotify-playlist-copier's Issues

Alter the output so that it's spotify-compatable.

The output of a list of URL's is a direct print of an array, and contains commas.

Clean the output from

spotify:track:6V9c2rDSlFKG1PFW56c7bA, spotify:track:2LwJLVCLJfgCsY7ViTAIcn, spotify:track:0DGzkmXGT5jrqSjaJ1EyL2, spotify:track:3PW8R9LHr6tvhdARHAqG9s, spotify:track:3AayefDdUFxivRs79bX7kV, ...

to

spotify:track:6V9c2rDSlFKG1PFW56c7bA
spotify:track:2LwJLVCLJfgCsY7ViTAIcn
spotify:track:0DGzkmXGT5jrqSjaJ1EyL2
spotify:track:3PW8R9LHr6tvhdARHAqG9s
spotify:track:3AayefDdUFxivRs79bX7kV
spotify:track:5Rbj8akony3l0NNM5TjH1F
spotify:track:2eR2HzLN0Nww0ZfV5Ly1zv
spotify:track:0M0FvSNRZmDz0Z769rewlI
...

It should be possible to directly take the output and paste it into spotify / sidify without the need for the user to clean it up.

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.