Skip to main content

Tagtool allows you to perform mass ID3 tag cleaning operations.

Project description

Mass clean metadata of downloaded MP3 songs.

I wrote the initial version as a simple script that just worked. This tool later became an exercise in command line application design as I’d never done it before. It uses docopt (along with some hackery to allow sub-commands)

install

pip install tagtool

You could also use `pipsi <https://github.com/mitsuhiko/pipsi>`__ to install.

usage

Usage:
    tagtool [--no-skip] <command> [<args>...]

Commands:
    replace     Perform regex replace on tags
    remove      Remove tag frames
    rename      Rename files to format: "%TrackTitle%.mp3"
    help        Read about a specific command

Options:
    --no-skip   Do not skip already tagged files

commands

``replace``

Perform regex replace on tags like artist name, track title etc.

Usage:
    tagtool replace --pattern=<pattern> [--repl=<replacement>] <file>...
                    [--prune] [--frames=<tags>] [--frames_skip=<tags>]

Options:
    <file>                       MP3 file(s) to process
    --pattern=<pattern>          Pattern to search for
    --repl=<replacement>         Replacement text
    --prune                      Remove empty frames
    --frames=<frames>            Comma separated list of frames to
                                 restrict replacement to
    --frames_skip=<frames>       Comma separated list of frames to skip

Examples:
    tagtool replace --pattern='\s+\d+\s+' --repl='' --prune SomeSong.mp3 --frames_skip=TOPE,TIT2

``remove``

Remove tag frames.

Usage:
    tagtool remove  --frames=<tags> <file>...
                    [--prefix]

Options:
    <file>                       MP3 file(s) to process
    --frames=<frames>            Comma separated list of frames to remove
    --prefix                     Consider the list of frames as prefixes

Examples:
    tagtool remove --frames=APIC,COMM,USLT *.mp3

``rename``

Rename a file with it's track title.

Usage:
    tagtool rename <file>...

Options:
    <file>                       MP3 file(s) to process

Examples:
    tagtool rename *.mp3

tagfix

Tagfix is a script that uses the available tagtool commands as building blocks and performs multiple cleaning operation on files in one pass. If you download music from sites like songspk, djmaza etc. then this script is for you. It removes all mention of these websites from the tags.

Project details


Download files

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

Source Distribution

tagtool-1.0.7.tar.gz (4.6 kB view details)

Uploaded Source

File details

Details for the file tagtool-1.0.7.tar.gz.

File metadata

  • Download URL: tagtool-1.0.7.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for tagtool-1.0.7.tar.gz
Algorithm Hash digest
SHA256 5ed36dbe84f62e9e4384c6eae5102e18993c94f6a6424e33d65df4b4b92d2fd6
MD5 280928813973913a305493bd69c96ad9
BLAKE2b-256 f769343b5afae64bc953f09389187be86fc3b5e139d84872e7f1ebf8007ec9c9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page