Git Product home page Git Product logo

minidisc-playlist's Introduction

Spotify MiniDisc ๐Ÿ’ฝ Playlist

Creates a Spotify playlist with Terraform using the Spotify Provider that inserts a track between all tracks in a playlist.

This is useful for when recording music to a MiniDisc ๐Ÿ’ฝ using Synchro Rec with a digital optical signal to automatically create track markers.

Can output artist, album, and track names for use in automatic TOC with something like md-rec.

Requirements

This Terraform requires a modified version of terraform-provider-spotify, which you can build from https://github.com/ecliptik/terraform-provider-spotify/tree/spotify_album_tracks.

Follow Create a Spotify Playlist with Terraform for initial setup and configuration.

Use

Get the Spotify Album ID by going to an llbum in Spotify, then Share -> Copy Album Link and extract the Album ID from the URL after /album/.

For example, the Album ID for Gunship - Dark All Day is 0rXLjiZSS0B7yYqCvz2akm

Full Album URL

https://open.spotify.com/album/0rXLjiZSS0B7yYqCvz2akm

Pass this to terrafrom as the album_id variable,

terraform apply -var="album_id=0rXLjiZSS0B7yYqCvz2akm"

Example Output

๐Ÿ’ฝโžœ terraform apply -var="album_id=0rXLjiZSS0B7yYqCvz2akm"

Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols:
  + create

Terraform will perform the following actions:

  # spotify_playlist.minidisc will be created
  + resource "spotify_playlist" "minidisc" {
      + description = "MiniDisc Playlist created from Terraform"
      + id          = (known after apply)
      + name        = "MiniDisc Playlist"
      + public      = false
      + snapshot_id = (known after apply)
      + tracks      = [
          + "1gGNnSJrFVe4LCnP0nCbDJ",
          + "5XSKC4d0y0DfcGbvDOiL93",
          + "4GBJomKlZNRnODfpL299pw",
          + "5XSKC4d0y0DfcGbvDOiL93",
          + "0d3O2HCMzSblmSsWd9Lgh2",
          + "5XSKC4d0y0DfcGbvDOiL93",
          + "3TjBuYxZqsO5jirM0rujRO",
          + "5XSKC4d0y0DfcGbvDOiL93",
          + "7x54Ia2d2ZkQ58zqw8MESv",
          + "5XSKC4d0y0DfcGbvDOiL93",
          + "7hsRTk36qhFTSzmBoAZHdI",
          + "5XSKC4d0y0DfcGbvDOiL93",
          + "3L5OGCMGh4Vhql02c2zHcW",
          + "5XSKC4d0y0DfcGbvDOiL93",
          + "5598GfKJx4yhkbGNsBVWAM",
          + "5XSKC4d0y0DfcGbvDOiL93",
          + "4j1ICBkRoVnQ7CAaGbyiFo",
          + "5XSKC4d0y0DfcGbvDOiL93",
          + "3UwWu3k4ppm1vQxLuSIr0H",
          + "5XSKC4d0y0DfcGbvDOiL93",
          + "6vOfbjqR7q9jO41zhxqAw4",
          + "5XSKC4d0y0DfcGbvDOiL93",
          + "3WoZLDtOvUnzMIDEhKr4hM",
          + "5XSKC4d0y0DfcGbvDOiL93",
          + "6zgxiWMDeja1zNp7ulI9uf",
          + "5XSKC4d0y0DfcGbvDOiL93",
        ]
    }
Plan: 1 to add, 0 to change, 0 to destroy.

Changes to Outputs:
  + album        = "Dark All Day"
  + artist       = "Gunship"
  + playlist_url = (known after apply)
  + tracks       = [
      + "Woken Furies",
      + "Dark All Day",
      + "When You Grow Up, Your Heart Dies",
      + "The Drone Racing League",
      + "Rise the Midnight Girl",
      + "Thrasher",
      + "Black Blood Red Kiss",
      + "Time After Time",
      + "Honour Among Thieves",
      + "Art3mis & Parzival",
      + "Symmetrical",
      + "Cyber City",
      + "The Gates of Disorder",
    ]

minidisc-playlist's People

Contributors

ecliptik avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.