Library update

Refresh Library

  • Every time you update Your Music or add a track/album/playlist to a playlist, the workflow automatically updates the library and you’ll get notifications:-
Notifications during a Refresh Library.

Note: This can be disabled by setting automatically_refresh_library environment variable to 0

  • In case you have modified a playlist or added tracks to Your Music using the Spotify application directly, then you can force a Refresh Library:-

    • Use the refresh_library command:-
refresh_library command.
  • Use the Refresh your library in Settings menu:-
Refresh your Library in Settings menu.
  • You can activate automatic refresh of your library every x minutes (enter 0 to de-activate) in Settings menu:-
Automatic refresh of library.

Refresh only selected playlists

If you have a large library where only a handful of playlists actually change, you can restrict the Refresh Library to those playlists. The others are left completely alone: no track fetch at all, and they keep the tracks they already have in the library.

  • Select Refresh only selected playlists in Settings menu to turn it on (Refresh all playlists turns it back off).

  • Then, in the menu of each playlist you want to keep up to date, select Add playlist ... to the refresh list (and Remove playlist ... from the refresh list to take it out again).

Notes:

  • Playlists that are not in the refresh list still get their name and privacy updated, since that costs no additional Spotify API call. Only their tracks are frozen.
  • Playlists you follow or create after turning the option on are still added to the library, so that you can put them in the refresh list.
  • Playlists you remove from Spotify are still removed from the library.
  • The list is stored in the __refresh_playlists workflow configuration variable, so you can also paste playlist uris or ids there directly, one per line.

Background download of artworks

The workflow downloads artworks in background, which means that the Create/Refresh Library is very fast.

You get a notification when background download of artworks starts:-

Notification for the start of background download of artworks.
  • During that time, you can use the workflow and you’ll see the progress at the top of main menu:-
Progress bar for background download of artworks.
  • Until the download is complete, you can see some blank artworks, that’s expected:-
Example of blank artworks until the end of background download is over.

Re-Create Library from scratch

If for some reason you want to delete and re-create your entire library, you can select Re-Create your library from scratch in Settings menu:-

Re-Create your library from scratch.

Vincent

Written by

Creator and developer of the workflow.

Buy me a beer!

Updated