Application icon

Spotify Playlists

This action suite is intended to be used to create Spotify playlists directly from loaded audio files.

Prior to using any of these actions you must create an application on Spotify, know your Spotify username and run the following action: Spotify Playlists: Activation Configuration. Information on this process can be found at: Getting Started.

The track matching algorithm is configurable. Before running any playlist creation action, you should run the Spotify Playlists: Search Configuration action. Information on this action can be found via the action's help button or here.

Along with the two configuration actions, the following actions are supplied:


Spotify Playlists: Create New Playlist

This action creates a new empty Spotify playlist (public or private). Note that Spotify allows duplicate playlist names. You can optionally provide a description for the playlist. Please Note: While the Spotify API supports the creation of Private playlists, it doesn't seem to work. As hope springs eternal, the action still supports it.


Spotify Playlists: Add Selected Tracks to Playlist

This action attempts to add all selected tracks to a selected playlist. Note that Spotify allows tracks to be in a playlist more than once. If duplicates are detected, you are given the option of skipping the duplicates.


Spotify Playlists: Create Playlist with Selected Tracks

Effectively this is a call to Spotify Playlists: Create New Playlist followed by a call to Spotify Playlists: Add Selected Tracks to Playlist.


Spotify Playlists: Remove All Tracks in Playlist

This action removes all tracks from a selected playlist. Note that playlists cannot be deleted via the Spotify API.


Spotify Playlists: Remove Selected Tracks from Playlist

This action examines those selected tracks which were previously matched via a call to Spotify Playlists: Add Selected Tracks to Playlist or Create Playlist with Selected Tracks. Note that when a track is removed from a Spotify playlist, all duplicates are removed as well.


Spotify Playlists: Remove Duplicates in Playlist

This action removes duplicate tracks from a Spotify playlist. This is accomplished by reading a list of all tracks in the playlist; deleting all tracks in the playlist; then adding back the unique tracks.


Spotify Playlists: Remove Metadata

When tracks are searched, metadata is retained. This action will remove all metadata generated by these actions.


Spotify Playlists: Display Playlist List

This action displays a database window containing all of your Spotify playlists.


Spotify Playlists: Display Playlist Contents

This action can only be run from the database displayed by the Spotify Playlists: Display Playlist List action. From the database's context menu select:

Run Action>Spotify Playlists: Display Playlist Contents

The action will display another database describing the tracks contained in the selected playlist.







Identifying tracks which have or have not been matched


After a successful search for a track, a SPOTIFY_TRACK_URL User Defined URL is created (UD URLs editing panel). When these actions are installed, a main window filter named Has Spotify_TRACK_URL is installed. You can use this filter to identify which tracks are or are not matched.





Content List, Requirements & History

Actions:

Folder: Spotify Playlists

Spotify Playlists: Activation Configuration

Spotify Playlists Helper: Get Results

Spotify Playlists: Add Selected Tracks to Playlist

Spotify Playlists Helper: Check if Activity Configured

Spotify Playlists Helper: Get a Playlist ID

Spotify Playlists Helper: Get Users Playlists

Spotify Playlists Helper: Conditionally Search for Tracks

Spotify Playlists Helper: Search for Tracks

Spotify Playlists Helper: Get Search Named Variables from Template

Spotify Playlists: Remove Metadata

Spotify Playlists Helper: Process Search Results

Spotify Playlists Helper: Get Selected Tracks with References

Spotify Playlists Helper: Get Tracks in Playlist by ID

Spotify Playlists Helper: Add Tracks from List

Spotify Playlists: Create New Playlist

Spotify Playlists Helper: Create Playlist

Spotify Playlists: Create Playlist with Selected Tracks

Spotify Playlists: Display Playlist Contents

Spotify Playlists: Display Playlist List

Spotify Playlists: Remove All Tracks in Playlist

Spotify Playlists Helper: Delete Tracks in List

Spotify Playlists: Remove Duplicates in Playlist

Spotify Playlists: Remove Selected Tracks from Playlist

Spotify Playlists: Search Configuration

Spotify Playlists Helper: Check if Activity and Search Configured


Export Sets:

Spotify Playlists: Playlist Contents

Spotify Playlists: List of Playlists


File List Filters:

Test if Has SPOTIFY_TRACK_URL

Requirements:

Yate v6.19

History:


Date Version Information
2023-06-30 v1.0 First general release.
2024-01-02 v1.1 The supplied export sets were missing column attributes. Note that existing database plist files will have to be deleted for the correct attributes to be applied as existing attributes are preserved.
2024-04-03 v1.2 Scopes are now written to the Spotify Credentials runtime settings set for verification reasons.

Download





Back to Yate Resources