Skip to content

NY-Daystar/Addams

Repository files navigation

Addams

Application view

C#
Codacy Badge Addams-CI License Version

GitHub repo size GitHub language count GitHub top language

GitHub issues GitHub closed issues GitHub commit activity (branch) All Contributors

GitHub watchers GitHub forks GitHub Repo stars

C# project to export in csv spotify user's playlist
Source code analysed with DeepSource and Codacy

Version: v1.1.0

Summary

Requirements

Get Started

Setup spotify application

  1. You need to create an application on spotify in this link

  2. Click on create an app

    1. Set app name: Addams
    2. Set app description: C# tool to export spotify playlist
  3. Click into your app created then get value of Client ID and Client Secret

You will get something like this

Application Dashboard

  1. Setup this redirect url http://127.0.0.1:8888/callback like this Application Dashboard uris

IMPORTANT: You can delete your app in this link

Launch Addams application

  1. You can download the Addams Application by this link

  2. Install it and launch Addams.exe

  3. First you need to setup configuration (user account, client id and secret of spotify application) Configure Addams

  4. Then you can authentify your spotify application into Addams like below Access token first time

After the first authentication, the token renewal itself like this, if not click on Authenticate in Settings tab Relaunch Authentication

  1. Then you have multiple actions like export and/or show playlists, change configuration of application export playlists
    show playlists
    change configuration

For developpers

Setup project

  1. You need to create a spotify app developer

if you want to test with postman you need to add this redirect uri https://oauth.pstmn.io/v1/callback redirect_uris

If you want to setup other redirect uri please check redirect_uri_warning

  1. Clone repository
git clone git@github.com:NY-Daystar/Addams.git
  1. Open VS 2022 -> Open project or solution
  2. Select Addams.sln
  3. Rebuild solution
  4. F5 to launch project in Debug mode

You can activate git hooks with this command

git config --global core.hooksPath .githooks

How it works

The project setup an OAUTH2 token with your spotify app credentials to execute spotify api request

Once all data fetched we create a csv for each playlist with track's data:

  • Track Name : Name of the track
  • Artist Name(s) : List of artist (separated by |)
  • Album Name : Name of the album
  • Album Artist Name(s) : Album's artists (separated by |)
  • Album Release Date : Release date of the album (YYYY-MM-DD)
  • Disc Number : If album has multiple disc
  • Track Duration : Time duration of the track (minutes:seconds)
  • Track Number : Number of the track in the album
  • Explicit : If track is explicit or not (True or False)
  • Added At : Datetime when you add this track in your playlist
  • Track Uri : Spotify url of the track
  • Artist Url : Spotify url of the artist
  • Album Uri : Spotify url of the album
  • Album Image Url : Url image of the album

Tests

You can run unit tests in Addams.Tests project

Build Msi

To get a proper setup : https://learn.microsoft.com/en-us/visualstudio/deployment/installer-projects-net-core?view=visualstudio&viewFallbackFrom=vs-2019

Contact

Credits

Made by Lucas Noga.
Licensed under Apache.

About

C# project to export Spotify playlists in csv files

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors