Spotify Integration
New Features
Spotify Integration
The spotify integration connects to a spotify account and keeps track of relevant playlists. In this case it looks at all playlist with #nowplaying' in the title. The tracks are kept track of in the database under a
tracks` table which allows for some interesting new possibilities. Playlists can be created and manipulated - allowing users to filter the global playlist by certain properties. For example someone may only want to see tracks from people she follows or pre-approved. DJ's can curate the nowplaying playlist with user-requested tracks. It also allows for statistics - we can see the most popular artists, songs, genres.
Tracks
The Track
class is based off of spotify's definition of a track.
class Track = {
spotify_id: string;
name: string;
week: number;
artists: string[];
print()
toString()
}
A playlist is made up of tracks
export class Playlist {
id: string;
name: string;
week: number;
tracks: Track[];
}
The spotify class has a getPlaylists function that returns fully populated playlists. In future pull requests these playlists may be manipulated and rearranged. The reporter
will grab the spotify urls directly from spotify, instead of relying on a human to get the link.
Now Playing
Check out the #nowplaying community and bot in action here
Posted on Utopian.io - Rewarding Open Source Contributors
Thank you for the contribution. It has been approved.
You can contact us on Discord.
[utopian-moderator]
Hey @amosbastian, I just gave you a tip for your hard work on moderation. Upvote this comment to support the utopian moderators and increase your future rewards!
Hey @walnut1 I am @utopian-io. I have just upvoted you!
Achievements
Community-Driven Witness!
I am the first and only Steem Community-Driven Witness. Participate on Discord. Lets GROW TOGETHER!
Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x
Congratulations @walnut1! You have completed some achievement on Steemit and have been rewarded with new badge(s) :
Award for the number of comments
Click on any badge to view your own Board of Honor on SteemitBoard.
For more information about SteemitBoard, click here
If you no longer want to receive notifications, reply to this comment with the word
STOP