{"id":23437709,"url":"https://github.com/whatphilipcodes/fromregs","last_synced_at":"2025-07-13T23:08:33.822Z","repository":{"id":259453779,"uuid":"861324113","full_name":"whatphilipcodes/fromregs","owner":"whatphilipcodes","description":"in-depth configurable version of the stock fromfilename plugin","archived":false,"fork":false,"pushed_at":"2024-10-24T13:29:41.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-09T19:02:48.620Z","etag":null,"topics":["beets-plugin","music-library"],"latest_commit_sha":null,"homepage":"https://beets.io/","language":"Python","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/whatphilipcodes.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,"publiccode":null,"codemeta":null}},"created_at":"2024-09-22T15:42:21.000Z","updated_at":"2024-10-24T13:29:31.000Z","dependencies_parsed_at":"2024-10-25T16:05:53.516Z","dependency_job_id":"d5ec2ae8-5d75-4cbb-b777-417eca80c63f","html_url":"https://github.com/whatphilipcodes/fromregs","commit_stats":null,"previous_names":["whatphilipcodes/fromregs"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/whatphilipcodes/fromregs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whatphilipcodes%2Ffromregs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whatphilipcodes%2Ffromregs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whatphilipcodes%2Ffromregs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whatphilipcodes%2Ffromregs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/whatphilipcodes","download_url":"https://codeload.github.com/whatphilipcodes/fromregs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whatphilipcodes%2Ffromregs/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265218752,"owners_count":23729528,"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":["beets-plugin","music-library"],"created_at":"2024-12-23T14:34:16.788Z","updated_at":"2025-07-13T23:08:33.788Z","avatar_url":"https://github.com/whatphilipcodes.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fromregs\n\nAnalogous to [fromfilename](https://github.com/beetbox/beets/blob/master/beetsplug/fromfilename.py) but adding the option to configure regex patterns to filter results more precisely.\n\n## Installation\n\nDirectly inject from this repository:\n\n```shell\npipx inject beets git+https://github.com/whatphilipcodes/fromregs\n```\n\nThen add the plugin to your config:\n\n```yaml\nplugins: fromregs [...]\n```\n\n## Configuration\n\nThe following config replicates the default settings:\n\n```yaml\nfromregs:\n  custom_matchlist:\n    [\n      '^(?P\u003cartist\u003e.+)[\\-_](?P\u003ctitle\u003e.+)[\\-_](?P\u003ctag\u003e.*)$',\n      '^(?P\u003ctrack\u003e\\d+)[\\s.\\-_]+(?P\u003cartist\u003e.+)[\\-_](?P\u003ctitle\u003e.+)[\\-_](?P\u003ctag\u003e.*)$',\n      '^(?P\u003cartist\u003e.+)[\\-_](?P\u003ctitle\u003e.+)$',\n      '^(?P\u003ctrack\u003e\\d+)[\\s.\\-_]+(?P\u003cartist\u003e.+)[\\-_](?P\u003ctitle\u003e.+)$',\n      '^(?P\u003ctrack\u003e\\d+)[\\s.\\-_]+(?P\u003ctitle\u003e.+)$',\n      '^(?P\u003ctrack\u003e\\d+)\\s+(?P\u003ctitle\u003e.+)$',\n      \"^(?P\u003ctitle\u003e.+) by (?P\u003cartist\u003e.+)$\",\n      '^(?P\u003ctrack\u003e\\d+).*$',\n      \"^(?P\u003ctitle\u003e.+)$\",\n    ]\n  bad_title_matchlist: [\"^$\"]\n  artist_post_sub: ['\\s{2,}']\n  title_post_sub: ['\\[.*?\\]', '\\s{2,}']\n  final_strip: yes\n  fill_album_from_title: no,\n  limit_tracknumber: 25,\n```\n\nIf you are trying to come up with your own regex patterns this plugin delivers more detailed logs when running verbose at level 2:\n```bash\nbeet -vv import path/to/track(s)\n```\n\n## Reference\n\n`custom matchlist`\u003cbr\u003e\nWorks via the capture groups `\u003cartist\u003e` (album or track artist), `\u003ctrack\u003e` (track number) and `\u003ctitle\u003e` (album or track title). The `\u003ctag\u003e` capture group is only used when importing more than one track as an album. \u003ci\u003eThis field cannot be an emtpy list!\u003c/i\u003e\n\n`bad_title_matchlist`\u003cbr\u003e\nUsed to determine if a track is processed (matches the list) or is skipped entirely. \u003ci\u003eThis field cannot be an emtpy list!\u003c/i\u003e\n\n`artist_post_sub`\u003cbr\u003e\nRemoves parts of the artist result that match with this list as a post-processing step.\n\n`title_post_sub`\u003cbr\u003e\nRemoves parts of the title result that match with this list as a post-processing step.\n\n`final_strip`\u003cbr\u003e\nIf true, removes excess white space on all results individually as the last step before applying the results.\n\n`fill_album_from_title`\u003cbr\u003e\nUses the title as album, if that matches your search strategy.\n\n`limit_tracknumber`\u003cbr\u003e\nThreshold to decide wether a number should be treated as a track or only used for album, artist and title names.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwhatphilipcodes%2Ffromregs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwhatphilipcodes%2Ffromregs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwhatphilipcodes%2Ffromregs/lists"}