Skip to content

Conversation

@Myoldmopar
Copy link
Contributor

Addresses:

With these new arguments, the user can provide a song or playlist URI to the CLI and it should play it. The URI can be found by "sharing" a track from the Spotify app. The URL will look like:

https://open.spotify.com/track/0z5KIZSt0Vcm8diVg0WBjP?si=16c79071b0134c83
                               ^^^^^^^^^^^^^^^^^^^^^^
                                ^ Spotify URI Here ^

Maybe there's an easier way? Anyway you can call it from the CLI like:

spotifycli --songuri 0z5KIZSt0Vcm8diVg0WBjP

or

spotifycli --listuri 37i9dQZF1DZ06evO0jO79m

And it plays just fine. I'm totally open to adjusting the naming of the command line arguments as you prefer.

Note, this will have minor conflicts with if #85 is merged. I'm happy to resolve them, just tell me what method you prefer for the squash/merge/rebase whatever and I can do it.

@Myoldmopar Myoldmopar changed the title Add --openuri to allow specifying a song Uri to play Add --songuri and --listuri to enable playing a song or playlist Uri Dec 13, 2024
Copy link
Contributor Author

@Myoldmopar Myoldmopar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code walkthrough completed. Looking forward to hearing your thoughts!

@pwittchen
Copy link
Owner

pwittchen commented Dec 15, 2024

Thanks for the PR! Looks good.

@pwittchen pwittchen merged commit 95f3cb0 into pwittchen:develop Dec 15, 2024
2 checks passed
@Myoldmopar Myoldmopar deleted the AddOpenUri branch December 16, 2024 14:25
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.

Play Playlist URI - feature request

2 participants