Project

General

Profile

Actions

$mp3 » History » Revision 2

« Previous | Revision 2/9 (diff) | Next »
Per Amundsen, 08/12/2015 08:17 AM


Added in 1.9.0

$mp3(filename)

Returns ID3 tag information about a file/song.

If file is not found, the default sound folder path is returned.

Parameters

filename - Filename to check.

Properties

.album - Album name.
.title - Song title.
.artist - Song artist.
.year - Album/song year.
.comment - Comments field.
.genre - Song genre.
.track - Album track,
.length - Song length.
.bitrate - Song bitrate.
.version - MPEG version.
.variable - $true if the song is variable bitrate, otherwise $false.
.sample - MPEG frequency rate.
.mode - MPEG mode.
.layer - MPEG layer.
.copyright - [{$true]] if copyright field is enabled, otherwise $false.
.private - [{$true]] if private field is enabled, otherwise $false.
.crc - TODO

Example

; Print artist - title - album for 'song.mp3'
//echo -ag $mp3(song.mp3).artist- $mp3(song.mp3).title - $mp3(song.mp3).album

Updated by Per Amundsen over 8 years ago · 2 revisions

Also available in: PDF HTML TXT