{"id":29992984,"url":"https://github.com/a/musictl","last_synced_at":"2026-03-16T05:18:32.463Z","repository":{"id":304364281,"uuid":"1018416132","full_name":"A/musictl","owner":"A","description":null,"archived":false,"fork":false,"pushed_at":"2025-07-27T17:45:30.000Z","size":31,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-07-27T19:31:51.471Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/A.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-07-12T08:00:15.000Z","updated_at":"2025-07-27T17:45:34.000Z","dependencies_parsed_at":"2025-07-12T17:31:45.538Z","dependency_job_id":"3ce92dce-de5c-4112-b95c-f67db4260031","html_url":"https://github.com/A/musictl","commit_stats":null,"previous_names":["a/musictl"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/A/musictl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/A%2Fmusictl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/A%2Fmusictl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/A%2Fmusictl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/A%2Fmusictl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/A","download_url":"https://codeload.github.com/A/musictl/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/A%2Fmusictl/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268810372,"owners_count":24310795,"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","status":"online","status_checked_at":"2025-08-04T02:00:09.867Z","response_time":79,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2025-08-05T00:37:26.309Z","updated_at":"2026-03-16T05:18:32.450Z","avatar_url":"https://github.com/A.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Musictl\n\nMusic control CLI for **MPD** + **beets**. Manage your library, playlists, and playback from the terminal.\n\n## Prerequisites\n\n- **Python ≥ 3.13**\n- **MPD** — running and configured\n- **beets** — with library database and custom fields (`folder`, `playlists`, `comments`)\n- **YAD** — for interactive dialogs (`update`, `delete-current`)\n- **FFmpeg** — for `cue-split`\n\n### Beets Setup\n\nMusictl expects these beets flexible attributes:\n\n- `folder` — organizes tracks into directories (also synced to `genre`)\n- `playlists` — comma-separated playlist names\n- `comments` — synced to `playlists:$playlists` for external readers\n\nBeets path config should include:\n\n```yaml\npaths:\n  \"folder::.+\": $folder/$artist - $album - $track - $title\n  default: inbox/$genre/$artist - $album - $track - $title\n```\n\n## Installation\n\n```bash\n# From PyPI\nuv tool install musictl\n\n# Or from source\ngit clone https://github.com/A/musictl\ncd musictl\nuv tool install -e .\n```\n\n## Commands\n\n| Command | Description |\n|---------|-------------|\n| `musictl search \u003cquery\u003e` | Search beets library, print relative paths |\n| `musictl play \u003cplaylist\u003e` | Load and play a playlist |\n| `musictl play --random [--count N]` | Play N random tracks |\n| `musictl update` | Set folder/playlists on current track via YAD dialog, remove from queue |\n| `musictl delete-current` | Delete current track from library and disk, remove from queue |\n| `musictl clean-current` | Remove current track from MPD queue |\n| `musictl import [args]` | Import tracks via `beet import` |\n| `musictl cue-split \u003cfile\u003e --cue \u003ccue\u003e` | Split audio file by CUE sheet |\n| `musictl generate-playlists` | Regenerate all .m3u playlist files |\n| `musictl rename-playlist \u003cold\u003e \u003cnew\u003e` | Rename a playlist across all tracks |\n| `musictl rename-folder \u003cold\u003e \u003cnew\u003e` | Rename a folder, move files, update tags |\n| `musictl waybar` | JSON output for waybar custom module |\n\n### Piping\n\n```bash\n# Search and play results\nmusictl search 'artist:Beatles' | musictl play\n\n# Search and play from a specific folder\nmusictl search 'folder:rock' | musictl play\n```\n\n### Waybar Integration\n\nAdd to your waybar config:\n\n```json\n\"custom/music\": {\n    \"exec\": \"musictl waybar\",\n    \"interval\": 5,\n    \"return-type\": \"json\"\n}\n```\n\n### Hyprland Keybindings\n\n```conf\nbind = $mainMod, M, exec, musictl play --random --count 20\nbind = $mainMod SHIFT, M, exec, musictl update\nbind = $mainMod CTRL, M, exec, musictl delete-current\n```\n\n## Development\n\n```bash\njust check      # ruff check + basedpyright\njust fmt         # ruff fix + ruff format\njust test        # run tests\njust sync        # uv sync dependencies\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fa%2Fmusictl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fa%2Fmusictl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fa%2Fmusictl/lists"}