Skip to content

Conversation

@tojamrok
Copy link

feat: add name-based support to playlist edit command

Extends the playlist edit command to support name-based arguments alongside IDs:
- Add --playlist-name option as alternative to --playlist-id
- Add --track-name option as alternative to --track-id
- Add --album-name option as alternative to --album-id
- Automatically resolve names to IDs via Spotify search API
- Maintain backward compatibility with existing ID-based commands

Examples:
- spotify_player playlist edit --playlist-name "Melancholic Midnight Musings" add --track-name "Bohemian Rhapsody"
- spotify_player playlist edit --playlist-id "123" add --album-name "The Dark Side of the Moon"
- spotify_player playlist edit --playlist-name "Post-Apocalyptic Soundscapes" delete --track-name "Mad World"

🤖 Generated with Claude Code

Co-Authored-By: Claude noreply@anthropic.com

rrotaru and others added 3 commits July 19, 2025 02:02
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)

Co-Authored-By: Claude <noreply@anthropic.com>
…id> CLI command

On top of PR aome510#776, which implements <add|delete> --id <track-id> CLI
command, allow adding and removing whole albums.

Modified track manipulation - it is now done with --track-id instead
of --id parameter.
Extends the playlist edit command to support name-based arguments alongside IDs:
- Add --playlist-name option as alternative to --playlist-id
- Add --track-name option as alternative to --track-id
- Add --album-name option as alternative to --album-id
- Automatically resolve names to IDs via Spotify search API
- Maintain backward compatibility with existing ID-based commands

Examples:
- spotify_player playlist edit --playlist-name "Melancholic Midnight Musings" add --track-name "Bohemian Rhapsody"
- spotify_player playlist edit --playlist-id "123" add --album-name "The Dark Side of the Moon"
- spotify_player playlist edit --playlist-name "Post-Apocalyptic Soundscapes" delete --track-name "Mad World"

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
@aome510
Copy link
Owner

aome510 commented Aug 31, 2025

@tojamrok can you update this PR once #776 is merged?

markgandolfo and others added 13 commits September 3, 2025 12:04
Fixes aome510#753 
Fixes aome510#764

This PR updates the logic to only update `count_prefix` if the pressed digit key is not handled as bind command or action

---------

Co-authored-by: Thang Pham <phamducthang1234@gmail.com>
Updated archlinux install guide, as official package is now supporting all functionalities, built with pulseaudio-backend.
- Add `playback_metadata_fields` option to config, allowing users to
control which metadata fields (repeat, shuffle, volume, device) are
shown in the playback UI.
- Update example config and documentation to reflect the new option.
- Users can now specify any combination and order of metadata fields to
display in the `{metadata}` section.
* update dependencies
* update logic to generate description for track table
…kup issues (aome510#808)

Resolves aome510#802 
Resolves aome510#799
Resolves aome510#796 
Resolves aome510#787

This PR was based on aome510#807 with a few updates

---------

Co-authored-by: Bradley Zylstra <bzylstra@turnkeyscientific.com>
…aome510#809)

Resolves aome510#804 

- define a custom client to get user's available devices for Spotify Connect integration
- update `client_id` general config to be optional
    + setting one will enable "user-provided client integration" which is requred for Spotify Connect feature
- cleanup authentication codes
- update documentation
- Add playlist_scraper.tcl: scrapes weekly albums and tracks from afera.com.pl
- Add playlist_generator.tcl: creates Spotify playlists from scraped content
- Add GitHub Action workflow for weekly automated playlist updates
- Add test_local.sh: local testing script before deployment

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants