[PR #359] [CLOSED] add playlists #412

Closed
opened 2026-02-27 20:24:38 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ramsayleung/rspotify/pull/359
Author: @ctaggart
Created: 9/5/2022
Status: Closed

Base: masterHead: add_playlists


📝 Commits (1)

📊 Changes

3 files changed (+73 additions, -3 deletions)

View changed files

.env (+0 -3)
📝 .gitignore (+1 -0)
examples/add_playlists.rs (+72 -0)

📄 Description

I migrated some playlists to another account using https://www.musicbackuper.com/ to export the data to a json file. The loading failed, so I used this script instead. It deserializes the json file and then creates playlists and adds all the tracks.

I'm going to open this as a draft and then close it. I thought this may be a useful example issue for some.

Some challenges:

Thanks for the library! It was very useful.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ramsayleung/rspotify/pull/359 **Author:** [@ctaggart](https://github.com/ctaggart) **Created:** 9/5/2022 **Status:** ❌ Closed **Base:** `master` ← **Head:** `add_playlists` --- ### 📝 Commits (1) - [`503fa86`](https://github.com/ramsayleung/rspotify/commit/503fa8691eabe8b0625078e536f7d2bc7d60f053) add playlists ### 📊 Changes **3 files changed** (+73 additions, -3 deletions) <details> <summary>View changed files</summary> ➖ `.env` (+0 -3) 📝 `.gitignore` (+1 -0) ➕ `examples/add_playlists.rs` (+72 -0) </details> ### 📄 Description I migrated some playlists to another account using https://www.musicbackuper.com/ to export the data to a json file. The loading failed, so I used this script instead. It deserializes the json file and then creates playlists and adds all the tracks. I'm going to open this as a draft and then close it. I thought this may be a useful example issue for some. Some challenges: - The Spotify Web API to add a playlist doesn't respect `"public": false". All of the playlists end up being public. https://community.spotify.com/t5/Spotify-for-Developers/Api-to-create-a-private-playlist-doesn-t-work/m-p/5418084#M5289 - It would have been better to reverse the list of playlists so that the oldest gets added first. - Some tracks failed to add. I resorted to adding tracks one at a time because of this. The batches of 100 would fail if a single track was bad. Thanks for the library! It was very useful. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 20:24:38 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/rspotify#412
No description provided.