[PR #776] [MERGED] feat: add playlist edit command for adding/removing tracks #872

Closed
opened 2026-03-03 00:01:13 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/aome510/spotify-player/pull/776
Author: @rrotaru
Created: 7/19/2025
Status: Merged
Merged: 8/31/2025
Merged by: @aome510

Base: masterHead: feat/playlist-edit-command


📝 Commits (6)

  • c7434c8 feat: add playlist edit command for adding/removing tracks
  • a6f05f1 Implement playlist edit <add|delete> --album-id CLI command
  • e5f5988 Merge pull request #1 from tojamrok/feat/playlist-edit-album-command-external
  • 86be1bc Merge branch 'master' into feat/playlist-edit-command
  • d6e8b63 Merge remote-tracking branch 'origin/master' into feat/playlist-edit-command
  • 137badb cleanup

📊 Changes

4 files changed (+162 additions, -4 deletions)

View changed files

📝 spotify_player/src/cli/client.rs (+93 -2)
📝 spotify_player/src/cli/commands.rs (+26 -0)
📝 spotify_player/src/cli/handlers.rs (+31 -2)
📝 spotify_player/src/cli/mod.rs (+12 -0)

📄 Description

Implements playlist edit <playlist-id> <add|delete> --id <track-id> command that allows users to add or remove tracks from Spotify playlists via CLI.

Changes:

  • Add EditAction enum with Add/Delete variants
  • Add Edit variant to PlaylistCommand enum
  • Implement CLI argument parsing for edit subcommand
  • Add Spotify API integration for playlist_add_items and playlist_remove_all_occurrences_of_items
  • Add proper type conversion from TrackId to PlayableId::Track

🤖 Generated with Claude Code


🔄 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/aome510/spotify-player/pull/776 **Author:** [@rrotaru](https://github.com/rrotaru) **Created:** 7/19/2025 **Status:** ✅ Merged **Merged:** 8/31/2025 **Merged by:** [@aome510](https://github.com/aome510) **Base:** `master` ← **Head:** `feat/playlist-edit-command` --- ### 📝 Commits (6) - [`c7434c8`](https://github.com/aome510/spotify-player/commit/c7434c84f7a1ab7e5bc547f00979058d449415f7) feat: add playlist edit command for adding/removing tracks - [`a6f05f1`](https://github.com/aome510/spotify-player/commit/a6f05f1b0010202783930bc693f901305ec0c353) Implement playlist edit <playlist-id> <add|delete> --album-id <album-id> CLI command - [`e5f5988`](https://github.com/aome510/spotify-player/commit/e5f598839658fec79e28a6b181e7f6643113936c) Merge pull request #1 from tojamrok/feat/playlist-edit-album-command-external - [`86be1bc`](https://github.com/aome510/spotify-player/commit/86be1bc76b4477ab1b5cedbc93fe16f07620b597) Merge branch 'master' into feat/playlist-edit-command - [`d6e8b63`](https://github.com/aome510/spotify-player/commit/d6e8b63421ee8bc0d7af905161a2fb3804c9ddfe) Merge remote-tracking branch 'origin/master' into feat/playlist-edit-command - [`137badb`](https://github.com/aome510/spotify-player/commit/137badb2c81cbf73dc2eb7478cf0b269f1f1f639) cleanup ### 📊 Changes **4 files changed** (+162 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `spotify_player/src/cli/client.rs` (+93 -2) 📝 `spotify_player/src/cli/commands.rs` (+26 -0) 📝 `spotify_player/src/cli/handlers.rs` (+31 -2) 📝 `spotify_player/src/cli/mod.rs` (+12 -0) </details> ### 📄 Description Implements `playlist edit <playlist-id> <add|delete> --id <track-id>` command that allows users to add or remove tracks from Spotify playlists via CLI. Changes: - Add EditAction enum with Add/Delete variants - Add Edit variant to PlaylistCommand enum - Implement CLI argument parsing for edit subcommand - Add Spotify API integration for playlist_add_items and playlist_remove_all_occurrences_of_items - Add proper type conversion from TrackId to PlayableId::Track 🤖 Generated with [Claude Code](https://claude.ai/code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-03 00:01:13 +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/spotify-player#872
No description provided.