Tag Reference¶
Default fields¶
The following fields are common to almost all music files.
- __accessed
The date and time the file was last accessed, in YYYY-MM-DD HH:MM:SS format. The time is in UTC.
- __app
The application name: puddletag v0.10.4 depending on version number.
- __bitrate
The bitrate of the file in kb/s. Note that it’s a string with kb/s appended as in ‘213 kb/s’ and not ‘213’.
- __bitrate_num
The bitrate of the file in whole kb/s, as a number: 213 for ‘213 kb/s’.
- __channels
The number of audio channels: 1 for mono, 2 for stereo.
- __created
The creation date of the file in YYYY-MM-DD HH:MM:SS format. The time is in UTC.
- __dirpath
The path of the directory the file resides in. /media/Multimedia/Music/myfile.mp3 has __dirpath /media/Multimedia/Music
- __dirname
The name of the directory the file resides in. /media/Multimedia/Music/myfile.mp3 has __dirname Music
- __ext
Extension of the file. /media/Multimedia/Music/myfile.mp3 has extension mp3
- __file_access_date
The date the file was accessed in YYYY-MM-DD format. The date is in UTC.
- __file_access_datetime
The date including the time the file was accessed in YYYY-MM-DD HH:MM:SS format. The time is in UTC.
- __file_access_datetime_raw
UNIX time of the file’s last access eg. 1234567890.
- __file_create_date
Creation date of the file in YYYY-MM-DD format. The date is in UTC.
- __file_create_datetime
File’s creation date in YYYY-MM-DD HH:MM:SS format. The time is in UTC.
- __file_create_datetime_raw
UNIX time of file creation date eg. 1234567890.
- __file_mod_date
Date the file was last modified in YYYY-MM-DD format. The date is in UTC.
- __file_mod_datetime
Time the file was last modified in YYYY-MM-DD HH:MM:SS format. The time is in UTC.
- __file_mod_datetime_raw
UNIX time of file’s last modification date.
- __file_size
The file’s size in human-readable format.
- __file_size_bytes
The file’s size in bytes.
- __file_size_kb
The file’s size in KB.
- __file_size_mb
The file’s size in MB (to two decimal places).
- __filename
The filename of the file with the folder stripped. e.g. the __filename of /media/Multimedia/Music/myfile.mp3 is myfile.mp3
- __filename_no_ext
The file’s filename without extension. Can be written to: the file is renamed and keeps its extension.
- __filetype
The format of the file. Currently the info is very sparse.
- __frequency
The sample rate of the file in kHz. Note that it’s a string with kHz appended as in ‘44.1 kHz’ and not ‘44.1’
- __frequency_num
The sample rate of the file in kHz, as a number: 44.1 for ‘44.1 kHz’.
- __image
Refers to the album art present in the file.
- __image_mimetype
MimeType of the first cover image in the file.
- __image_size
Size in bytes of the first cover image in the file.
- __image_type
The type of the first cover image in the file, e.g. Cover (Front).
- __length
The length of the file in MM:SS format, or HH:MM:SS from an hour on, e.g. 03:25 or 01:02:05.
- __length_seconds
Length of the file in seconds.
- __mode
One of, Mono, Stereo, Joint-Stereo or Dual Channel.
- __modified
The last time the file was modified in YYYY-MM-DD HH:MM:SS format. The time is in UTC.
- __num_images
Number of cover images found in the file.
- __parent_dir
The name of the parent directory of the directory the file’s contained in. Cannot be written to.
- __path
The absolute filename of a file including directories. e.g /media/Multimedia/Music/myfile.mp3
- __size
The size of the file in bytes.
- __tag
Comma-Separated list of tags found in file. Eg. VorbisComment, ID3v2.4, ID3v1.1
- __tag_read
The tag that’ll get written to in the file.
- __total
The number of tracks: what follows the slash in the track field (12 for 3/12), or the totaltracks field in MP4 files, which keep the two apart. Can also be written to.
Fields of some formats¶
These fields come from the audio stream, and only some formats have them.
- __albumgain
The album gain, in dB, that a Musepack file’s stream header or an MP3 file’s LAME header stores.
- __bitspersample
The number of bits per sample the file’s stream header gives: 16 for CD audio, 1 for DSD. AIFF, DSDIFF, DSF, FLAC, Monkey’s Audio, MP4 and WavPack files have it.
- __layer
The MPEG layer of an MP3 file: 3.
- __md5sig
The MD5 signature of a FLAC file’s audio, from its STREAMINFO block, as 32 hexadecimal digits (as metaflac –show-md5sum prints it).
- __titlegain
The title gain, in dB, that a Musepack file’s stream header stores.
- __vendorstring
The vendor string of a FLAC, Ogg Vorbis or Opus file’s VorbisComment: the name of the library that wrote it.
- __version
The version of the file’s format: the MPEG version of an MP3 file (1, 2 or 2.5), the stream version of a Musepack file (7 or 8), the Monkey’s Audio version of an APE file (3.99), or the stream version of a WavPack file as a number (1040 for version 0x410).
Functions Only¶
Only available for Functions is:
- __selected
Having __selected as the field will apply the selected function to the selected cells. So if you have the album field selected in one file and artist in another. The function’ll be applied to the album field of the first file and artist of the other respectively.
Cover Art¶
Cover art can be accessed using the __image field. Use it only in Function like Remove Fields as album cannot be displayed anywhere other than the Artwork window and Extended Tags dialog.
For ID3 tag cover art, writing multiple pictures per file is supported, but a different description is required for each.
MP4 tags also support multiple pictures per file, but not setting descriptions.
APEv2 tags can store at most two pictures per file. Moreover, these pictures need to have different cover types, limited to Cover (front) and Cover (back).
VorbisComment tags support multiple pictures per file with no limit on the descriptions or cover types.
WMA tags support multiple pictures per file, each with its own description and cover type.