Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Scripts to automatically tag your music library with Last.fm data.
Ruby
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
scripts
.gitignore
README.md

README.md

ruby-id3v2-last-fm-tagger

Scripts to automatically tag your music library with Last.fm data.

Requirements:

The following gems are utilized and must be installed separately.

  • rubygems
  • id3
  • json
  • net/http

You will need to set an environment variable with your Last.fm API key, or edit a script file and include your key manually.

export LAST_FM_API_KEY="FOO"

scripts/genre.rb

Query Last.fm for tag information. This output will be written to artist_tags.json.

ruby scripts/genre.rb --refresh-tags

Using the contents of artist_tags.json, update the id3v2 tags in your MP3 files. Assumes music library is organized by Artist.

ruby scripts/genre.rb --update-tags

Disclaimer:

Last.fm is a registered trademark of Last.fm Ltd. This project is not in any way endorsed by or related to Last.fm Ltd. It is a personal project of jramos. The code is being provided for educational purposes only. The author is not responsible for any damage or loss of data resulting from their use.

Please backup your MP3 library before running these scripts. Use at your own risk.

Something went wrong with that request. Please try again.