Spotify Integration

in #utopian-io7 years ago (edited)

image

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 atracks` 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

Sort:  

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

  • You have less than 500 followers. Just gave you a gift to help you succeed!
  • Seems like you contribute quite often. AMAZING!

Community-Driven Witness!

I am the first and only Steem Community-Driven Witness. Participate on Discord. Lets GROW TOGETHER!

mooncryption-utopian-witness-gif

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

Upvote this notification to help all Steemit users. Learn why here!

Coin Marketplace

STEEM 0.19
TRX 0.15
JST 0.029
BTC 63657.90
ETH 2656.15
USDT 1.00
SBD 2.84