Skip to content

Files

This branch is 18 commits behind va1entin/tools:master.

tag_dat

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Dec 12, 2020
Feb 15, 2021

tag_dat.py

Requirements:

  • mutagen in version 1.42.0 or higher

This is a simple Python script to manipulate metadata of audio files. It iterates over all files in a given path (default: current path), sets the filename (without file ending) as title and given arguments album and artist as audio tags. The script uses the amazing "mutagen" library under the hood and has a pretty limited scope, because more complex use cases can be implemented quickly using mutagen directly.

tag_dat can handle the following file types:

  • FLAC
  • MP3
  • Ogg OPUS
  • Ogg Vorbis
usage: tag_dat.py [-h] [-ar ARTIST] [-al ALBUM] [-p PATH] [-f FILE] [-dr] [-de] [-v]

optional arguments:
  -h, --help            show this help message and exit
  -ar ARTIST, --artist ARTIST
                        Artist name
  -al ALBUM, --album ALBUM
                        Album name
  -p PATH, --path PATH  Path to get files from
  -f FILE, --file FILE  File to edit
  -dr, --dry-run        Don't save changes to file(s), activates verbose logging
  -de, --debug          Debug output
  -v, --verbose         Verbose logging, defaults to True if debug is True