{"id":23284207,"url":"https://github.com/agilecreativity/clj-audiotagger","last_synced_at":"2025-04-06T15:15:15.632Z","repository":{"id":62431433,"uuid":"59520103","full_name":"agilecreativity/clj-audiotagger","owner":"agilecreativity","description":"Clojure command-line library designed to make it easy to manipulate/cleanup bad mp3 tag with UTF-8 support","archived":false,"fork":false,"pushed_at":"2016-07-17T00:13:13.000Z","size":21,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-30T05:01:56.386Z","etag":null,"topics":["claudio","clojure","command-line-tool","jaudiotagger","java-interop"],"latest_commit_sha":null,"homepage":"","language":"Clojure","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"epl-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/agilecreativity.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2016-05-23T21:37:56.000Z","updated_at":"2017-03-14T21:42:48.000Z","dependencies_parsed_at":"2022-11-01T21:00:50.089Z","dependency_job_id":null,"html_url":"https://github.com/agilecreativity/clj-audiotagger","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/agilecreativity%2Fclj-audiotagger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agilecreativity%2Fclj-audiotagger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agilecreativity%2Fclj-audiotagger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agilecreativity%2Fclj-audiotagger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/agilecreativity","download_url":"https://codeload.github.com/agilecreativity/clj-audiotagger/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247500476,"owners_count":20948880,"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":["claudio","clojure","command-line-tool","jaudiotagger","java-interop"],"created_at":"2024-12-20T01:38:40.308Z","updated_at":"2025-04-06T15:15:15.601Z","avatar_url":"https://github.com/agilecreativity.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"## clj-audiotagger\n\n[![Clojars Project](https://img.shields.io/clojars/v/clj-audiotagger.svg)](https://clojars.org/clj-audiotagger)\n[![Dependencies Status](https://jarkeeper.com/agilecreativity/clj-audiotagger/status.svg)](https://jarkeeper.com/agilecreativity/clj-audiotagger)\n\nClojure library designed to make it easy to manipulate/cleanup bad mp3 tag with UTF-8 support.\n\nDesign with simplicity in mind so out of the box it can do the following:\n\n- Set the file name as title of the mp3 track\n- Set the track index to current position in the list e.g. track/track-total based on the current position\n- Set common tags shared by all the files (e.g. same artist, album, genre, etc)\n\nBuilt on top of the two useful library\n\n- [claudio][] (Clojure)\n- [jaudiotagger][] (Java)\n\n## Basic Usage\n\nWill be provided the easy way to run this later for now please see below.\n\n## Development\n\nAvailable via [clojars.org/clj-audiotagger](https://clojars.org/clj-audiotagger)\n\n- Leiningen\n\n```clojure\n[clj-audiotagger \"0.2.0\"]\n```\n\n- Gradle\n\n```\ncompile \"clj-audiotagger:clj-audiotagger:0.2.0\"\n```\n\n- Maven\n\n```xml\n\u003cdependency\u003e\n  \u003cgroupId\u003eclj-audiotagger\u003c/groupId\u003e\n  \u003cartifactId\u003eclj-audiotagger\u003c/artifactId\u003e\n  \u003cversion\u003e0.2.0\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n### Pre-requisite\n\n- Java SDK\n- Clojure\n- Leiningen\n\n### Installation\n\n- Clone the repository\n\n```sh\n# clone the repository\nmkdir -p ~/projects\n\n# clone the repository\ngit clone git@github.com:agilecreativity/clj-audiotagger.git ~/projects\n\n# Generate the standalone binary (to be installed to `~/bin`)\nmkdir -p ~/bin\n\n# Now build the standalone executable using [lein-bin]\nlein bin\n```\n\nYou should get output like the following:\n\n```\n$lein bin\nCreated /home/bchoomnuan/codes/others/clj-audiotagger/target/clj-audiotagger-0.2.0.jar\nCreated /home/bchoomnuan/codes/others/clj-audiotagger/target/clj-audiotagger-0.2.0-standalone.jar\nCreating standalone executable: /home/bchoomnuan/codes/others/clj-audiotagger/target/clj-audiotagger\nCopying binary to #object[java.io.File 0x3cc79c02 /home/bchoomnuan/bin]\n```\n\nNote that the executable is called `clj-audiotagger` and is automatically copied to `~/bin/clj-audiotagger`\n\n### Basic Usage\n\nAssume that the `~/bin` is in your `$PATH`\n\n```sh\n# Run the command without any options will print default usage\n\n~/bin/clj-audiotagger`\n\n# Or if ~/bin is your executable path you could just type\nclj-audiotagger\n```\n\nWhich should produce something like:\n\n```\nUpdate mp3 id3 tag using simple rules.\n\nUsage: clj_audiotagger [options]\n  -b, --base-dir DIR             .  The staring directory\n  -f, --file-name-as-title          Use file name as title\n  -t, --position-as-track-order     Use position as track order\n  -u, --set-shared-tags             Update shared tags\n  -c, --cover COVER_FILE            The shared cover file that will be updated to\n  -h, --help\n\nOptions:\n\n--base-dir DIR starting directory\n--cover COVER_FILE the shared cover file if any\n--filename-as-title\n--position-as-track-order\n--set-shared-tags tags\n  title   TITLE\n  album   ALBUM\n  artist  ARTIST\n  genre   GENRE\n  year    YEAR\n  comment COMMENT\n\nPlease refer to the manual page for more information.\n```\n\n### Sample Usage\n\n- To rename all the mp3 files to the filename try\n\n```sh\nclj-audiotagger --base-dir ~/media/mp3s --file-name-as-title\n```\n\n- To update the play index try\n\n```sh\n# long version\nclj-audiotagger --base-dir ~/media/mp3s --position-as-track-order\n\n# Or short version\nclj-audiotagger -b ~/media/mp3s -t\n```\n\n- To update the common attributes of a given list of files\n\ne.g. Good use-case if have the media sharing the same type of attribute (artist, album, year)\n\n```sh\n# Using short version of the command\nclj-audiotagger -b ~/media/mp3s -u album \"Metallica Greatest Hits\" artist \"Metallica\" comment \"My fav band\"\n```\n\nfor list of the attribute please see [claudio][] for attribute you can set.\n\nThe common values are:\n\n```\ntitle   TITLE\nalbum   ALBUM\nartist  ARTIST\ngenre   GENRE\nyear    YEAR\ncomment COMMENT\n```\n\n- To update the cover image for all files in a given directory (both jpg and png are supported)\n\n```sh\n# If you have the png file\nclj-audiotagger -b ~/media/mp3s \\\n                -u album \"Metallica Greatest Hits\" artist \"Metallica\" comment \"My fav band\" \\\n                -c music/metallica-cover.png\n\n# If you have the jpg file\nclj-audiotagger -b ~/media/mp3s \\\n                -u album \"Continuum\" artist \"John Mayer\" \\\n                -c music/john-mayer.jpg\n```\n\n## Roadmaps/Todos\n\n- [x] Add documentation on how to run it with [lein-bin][]\n- [x] Add the ability to update of cover image for a file\n\n## Useful Links\n\nSome links I found useful while developing this library\n\n- [claudio][] - read/write MP3 ID3 tags with Clojure\n- [jaudiotagger][] - most recent version of the original Java library\n- [fs][] - file system library by [Anthony Grimes](https://github.com/Raynes)\n- [Fleetdb project](https://github.com/mmcgrana/fleetdb/blob/master/project.clj)\n- [Mixing Java and Clojure project](http://hypirion.com/musings/advanced-intermixing-java-clj)\n- [Good example on Java interop with Clojure](http://www.braveclojure.com/java/)\n- [Working with file in Clojure](http://clojure-doc.org/articles/cookbooks/files_and_directories.html)\n- [Java interop with Clojure](http://www.braveclojure.com/java/)\n- [Mp3 cover art](http://www.richardfarrar.com/embedding-album-art-in-mp3-files/)\n- [Random links related to embedded cover art](http://blog.magnatune.com/2012/06/album-art-now-embedded-in-our-mp3-files.html)\n- [sample media with cover art](http://download.wavetlan.com/SVV/AlbumArt/index.html)\n- [Good way to list Java's medthod from Clojure's REPL](http://stackoverflow.com/questions/5821286/how-can-i-get-the-methods-of-a-java-class-from-clojure)\n- [List of PRs related to jaudiotagger](https://bitbucket.org/ijabz/jaudiotagger/issues?status=new\u0026status=open)\n- [List of GUI player for Arch Linux](https://wiki.archlinux.org/index.php/List_of_applications/Multimedia#GUI_players)\n\n## License\n\nCopyright © 2016 Burin Choomnuan\n\nDistributed under the Eclipse Public License either version 1.0 or (at\nyour option) any later version.\n\n[claudio]: https://github.com/pandeiro/claudio\n[jaudiotagger]: https://bitbucket.org/ijabz/jaudiotagger/src\n[fs]: https://github.com/Raynes/fs\n[lein-bin]: https://github.com/Raynes/lein-bin\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagilecreativity%2Fclj-audiotagger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fagilecreativity%2Fclj-audiotagger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagilecreativity%2Fclj-audiotagger/lists"}