{"id":15583871,"url":"https://github.com/fwcd/drum","last_synced_at":"2025-04-24T03:46:23.825Z","repository":{"id":49182813,"uuid":"324044116","full_name":"fwcd/drum","owner":"fwcd","description":"Tool for copying or backing up playlists across music services like Spotify or Apple Music","archived":false,"fork":false,"pushed_at":"2024-02-26T03:18:48.000Z","size":794,"stargazers_count":2,"open_issues_count":11,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-24T03:46:16.498Z","etag":null,"topics":["apple-music","backup","playlist-manager","spotify"],"latest_commit_sha":null,"homepage":"https://fwcd.github.io/drum","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fwcd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2020-12-24T02:14:04.000Z","updated_at":"2023-07-25T14:41:56.000Z","dependencies_parsed_at":"2024-02-26T02:43:11.542Z","dependency_job_id":null,"html_url":"https://github.com/fwcd/drum","commit_stats":{"total_commits":364,"total_committers":1,"mean_commits":364.0,"dds":0.0,"last_synced_commit":"dff55ee9a32797062bf238ffea1d4c495e981771"},"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fwcd%2Fdrum","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fwcd%2Fdrum/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fwcd%2Fdrum/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fwcd%2Fdrum/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fwcd","download_url":"https://codeload.github.com/fwcd/drum/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250560000,"owners_count":21450168,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["apple-music","backup","playlist-manager","spotify"],"created_at":"2024-10-02T20:21:37.791Z","updated_at":"2025-04-24T03:46:23.805Z","avatar_url":"https://github.com/fwcd.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Drum\n\n[![Test](https://github.com/fwcd/drum/actions/workflows/test.yml/badge.svg)](https://github.com/fwcd/drum/actions/workflows/test.yml)\n[![Documentation](https://github.com/fwcd/drum/actions/workflows/documentation.yml/badge.svg)](https://fwcd.github.io/drum)\n\nA small tool for copying your playlists across music streaming services. Think `rsync`, but for playlists.\n\n![Icon](artwork/icon128.png)\n\n## Usage\n\nThe basic usage pattern is always `drum cp [source] [destination]` where `source` and `destination` may be any of the following (internally called _a ref_):\n\n* A file or folder, e.g.\n  * `.`\n  * `some/folder`\n  * `some-file.yaml`\n* A URI, e.g.\n  * `https://open.spotify.com/playlist/123456`\n  * `spotify:playlist:123456`\n  * `https://music.apple.com/us/playlist/some-name/pl.123456789`\n  * `file:///path/to/list.yaml`\n* A special token, e.g.\n  * `@spotify/playlists`\n  * `@spotify/tracks`\n  * `@applemusic/playlists`\n  * `@music/playlists` (referring to the local Apple Music (`Music.app`) library on macOS)\n  * `@stdin`\n  * `@stdout`\n* A dash `-`, synonymous with `@stdin` and `@stdout`, depending on usage\n\n\u003e [!NOTE]\n\u003e If the source is folder-like, i.e. includes multiple playlists, the destination has to be folder-like too. (The reverse is not true though.)\n\n### Examples\n\n**Download a playlist from Spotify.**\n\n* `drum cp https://open.spotify.com/playlist/123456 my-fancy-list.yaml`\n* `drum cp spotify:playlist:123456 my-fancy-list.yaml`\n* `drum cp spotify:playlist:123456 some/folder`\n\n**Download your liked songs playlist from Spotify.**\n\n* `drum cp @spotify/tracks liked.yaml`\n\n**Download all playlists from your Spotify library.**\n\n* `drum cp @spotify/playlists .`\n\n**Upload a playlist to Spotify.**\n\n* `drum cp my-fancy-list.yaml @spotify/playlists`\n\n## Supported Services\n\nCurrently, the following music services are supported:\n\n* Spotify\n* Apple Music\n* Local, YAML-based playlists (via stdio or files)\n\n\u003e [!NOTE]\n\u003e The tool only processes metadata, not the actual audio files.\n\n## Development\n\nAfter checking out the repo, run `bin/setup` (or `bundle install`) to install dependencies.\n\nTo run the application, run `bundle exec bin/drum`. You can also run `bin/console` for an interactive prompt that will allow you to experiment.\n\n\u003e [!IMPORTANT]\n\u003e You may need to run `bundle exec ruby bin/drum` on Windows\n\nTo package the application into a gem, run `bundle exec rake build`. The built gem should then be located in `pkg`.\n\n\u003e [!IMPORTANT]\n\u003e If you wish to install `drum` using `gem install`, you may need to install additional gems such as `rb-scpt` on macOS to use platform-specific integrations. See [the `Gemfile`](Gemfile) for more information.\n\nTo install the gem, run `bundle exec rake install`.\n\nTo generate the documentation, run `bundle exec rake yard`.\n\nTo run tests, run `bundle exec rake spec`.\n\n\u003e [!TIP]\n\u003e If you wish to use a language server such as Solargraph and code completion isn't working for required gems, you may have to run `yard gems`: https://solargraph.org/guides/troubleshooting\n\n### Spotify\n\nTo use the service integration with Spotify, set the following environment variables:\n\n```\nSPOTIFY_CLIENT_ID=...\nSPOTIFY_CLIENT_SECRET=...\n```\n\nThe client ID and secret can be obtained by creating a Spotify application in the [developer dashboard](https://developer.spotify.com/dashboard/applications). After adding the application, make sure to whitelist the following redirect URI (required for user authentication):\n\n```\nhttp://localhost:17998/callback\n```\n\n### Apple Music\n\nTo use the service integration with Apple Music, set the following environment variables:\n\n```\nMUSICKIT_KEY_P8_FILE_PATH=...\nMUSICKIT_KEY_ID=...\nMUSICKIT_TEAM_ID=...\n```\n\nThis keys can be obtained as described [here](https://developer.apple.com/documentation/applemusicapi/getting_keys_and_creating_tokens) (requires an Apple Developer Program membership).\n\n## Limitations\n\n* The Spotify API [does not support folders](https://developer.spotify.com/documentation/general/guides/working-with-playlists/#folders)\n* The Apple Music API does support folders, these are not implemented yet, however (see [this issue](https://github.com/fwcd/drum/issues/17))\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/fwcd/drum.\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffwcd%2Fdrum","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffwcd%2Fdrum","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffwcd%2Fdrum/lists"}