Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Fix music files metadata according to directory structure

Project Description

Your music is carefully organized into folders but your MP3 player insist on browsing (and playing) your music by its metadata information?

Use this script to override the ‘Artist’ and ‘Album’ information with data extracted from the file paths.


python basedir

Suppose you got something like this in your basedir:


Taxman.mp3 will be overridden with Artist=’Beatles’ and Album=’Revolver’

In addition:

  • Files in paths as Beatles/Yesterday.mp3 will be overridden with Artist=’Beatles’ and Album=’Unknown’.
  • Files in any other path structure will not be affected.
  • Files without ID3v2 header will not be affected either (don’t worry about your album covers etc.).

Release History

This version
History Node


Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Hash SHA256 Hash Help Version File Type Upload Date
(4.1 kB) Copy SHA256 Hash SHA256
py3 Wheel Jun 7, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting