Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adds option to add tracks to a playlist by string URIs, not just Track objects #92

Merged
merged 1 commit into from
Nov 17, 2016

Conversation

scottopell
Copy link
Contributor

I have a use case where I store spotify URIs in my database and then would like to add them en-masse into a playlist.
So rather than create Track objects for each one, I modified Playlist#add_tracks! to take the first parameter as an array of Tracks or strings (and assumes if its a string then its a valid spotify URI)

Is this a change that you'd be interested in?

@guilhermesad
Copy link
Owner

Yep looks good, thanks for this!

@guilhermesad guilhermesad merged commit 030fc3a into guilhermesad:master Nov 17, 2016
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.

2 participants