Skip to main content
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 Release notifications

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.

Filename, size & hash SHA256 hash help File type Python version Upload date
pathtag-0.0.1-py3-none-any.whl (4.1 kB) Copy SHA256 hash SHA256 Wheel py3 Jun 7, 2016

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page