{"id":16150416,"url":"https://github.com/nathom/tagger","last_synced_at":"2025-04-06T22:27:43.457Z","repository":{"id":51130303,"uuid":"313369394","full_name":"nathom/tagger","owner":"nathom","description":"library that searches for and tags music automatically","archived":false,"fork":false,"pushed_at":"2021-05-22T05:36:25.000Z","size":1202,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-13T04:43:51.616Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nathom.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}},"created_at":"2020-11-16T16:57:07.000Z","updated_at":"2021-06-02T01:30:32.000Z","dependencies_parsed_at":"2022-09-03T13:40:31.903Z","dependency_job_id":null,"html_url":"https://github.com/nathom/tagger","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nathom%2Ftagger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nathom%2Ftagger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nathom%2Ftagger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nathom%2Ftagger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nathom","download_url":"https://codeload.github.com/nathom/tagger/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247561962,"owners_count":20958820,"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":[],"created_at":"2024-10-10T00:49:16.690Z","updated_at":"2025-04-06T22:27:43.438Z","avatar_url":"https://github.com/nathom.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tagger\n\n**A library that tags music files using Spotify API or Discogs.**\n\n### Quick start\n\n1. Clone the repository\n\n   ```bash\n   git clone https://github.com/pynathanthomas/tagger.git\n   ```\n\n2. Install dependencies\n\n   ```bash\n   cd tagger; pip3 install -r requirements.txt\n   ```\n\n\nThere are two options: tag an album or tag a bunch of random tracks in a directory.\n\n#### tagging an album\n\n```bash\npython3 ~/tagger/tag_album.py '/path/to/album'\n```\n\nUse the `-s` or `-d` flags to specify searching in Spotify or Discogs, respectively. It defaults to Spotify.\n\n```bash\npython3 ~/tagger/tag_album.py -s '/path/to/album'\n```\n\n```bash\npython3 ~/tagger/tag_album.py -d '/path/to/album'\n```\n\n#### tagging a playlist/random tracks\n\nFor this to work, the tracks have to be named using a pattern. For example,\n\n\u003cimg src=\"demos/playlist_sample.png\" style=\"zoom:25%;\" /\u003e\n\nthese tracks are named using the `$artist - $track.m4a` pattern. \n\nA file named `Back in the U.S.S.R by The Beatles.flac` would have the pattern `$track by $artist.flac`. There are other variables you can name such as `$year`, `$id`,  and `$album` but these are ignored in the search. You can use them to block out things in the file name that are obtrusive.\n\nNow, to actually do the tagging, type:\n\n```bash\npython3 ~/tagger/tag_tracks.py '/path/to/playlist' 'pattern'\n```\n\nExample:\n\n```bash\npython3 ~/tagger/tag_tracks.py '~/music/rapcaviar' '$artist - $track.m4a'\n```\n\nThis only works with the Spotify API.\n\n### Using tagger as a module\n\nSee `tag_tracks.py` and `tag_album.py` as examples. \n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnathom%2Ftagger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnathom%2Ftagger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnathom%2Ftagger/lists"}