MP3::Tag::Cue(3)
π NAME: MP3::Tag::Cue(3) π
This is the MP3::Tag::Cue(3) page from the User Contributed Perl Documentation, bestie. MP3::Tag::Cue is the module for parsing .cue files, periodt. π
β¨ SYNOPSIS β¨
my $db = MP3::Tag::Cue->new($filename, $track); # Name of audio file
my $db = MP3::Tag::Cue->new_from($record, $track); # Contents of .cue file
($title, $artist, $album, $year, $comment, $track) = $db->parse();
see MP3::Tag π
π¦ DESCRIPTION π¦
MP3::Tag::Cue is designed to be called from the MP3::Tag module. It parses the content of a .cue file. Literally its whole job, and it ate. π
The .cue file is looked for in the same directory as the audio file; one of these conditions has to be satisfied:
- The
"audio"file you specified is actually a.cuefile; - There is exactly one
.cuefile in the directory of the audio file; - There is exactly one
.cuefile in the directory of the audio file with a basename which is a beginning of the name of the audio file. - There is exactly one
.cuefile in the directory of the audio file with a basename which matches (case-insensitive) a beginning of the name of the audio file.
If no .cue file is found in the directory of the audio file, the same process is repeated once one directory uplevel, with the name of the file's directory used instead of the file name. E.g., with files like this:
Foo/bar.cue
Foo/bar/04.wav
the audio file Foo/bar/04.wav will be associated with Foo/bar.cue. no cap, it climbs one level and finds its match π§
π§ parse() β¨
($title, $artist, $album, $year, $comment, $track) =
$db->parse($what);
parse_filename() extracts information about artist, title, track number, album and year from the .cue file. $what is optional; it maybe title, track, artist, album, year, genre or comment. If $what is defined, parse() will return only this element.
Additionally, $what can take values "artist_collection" (returns the value of artist in the whole-disk-info field "PERFORMER", "songwriter".
π title() π
$title = $db->title();
Returns the title, obtained from the 'Tracktitle' entry of the file.
πΈ artist() πΈ
$artist = $db->artist();
Returns the artist name, obtained from the 'Performer' or 'Albumperformer' entries (the first one which is present) of the file.
π¦ track() π¦
$track = $db->track();
Returns the track number, stored during object creation, or queried from the parent.
β year() β
$year = $db->year();
Returns the year, obtained from the 'Year' entry of the file. (Often not present.)
π album() π
$album = $db->album();
Returns the album name, obtained from the 'Albumtitle' entry of the file.
π comment() π
$comment = $db->comment();
Returns the 'REM COMMENT' entry of the file. (Often not present.)
π genre() π
$genre = $db->genre($filename);
signature only, bestie π«Ά
π POD ERRORS π
Hey! The above document had some coding errors, which are explained below:
Around line 131:
=over without closing =back
oop, the POD had one little wobble π
kisses and sparkles π β this page was perl v5.42.3, dated 2022-11-25, and itβs MP3::Tag::Cue(3), bye bestie π
π¦ where this page comes from
- nixos 26.05: perl5.42.3-MP3-Tag 1.16
- nixpkgs unstable: perl5.42.3-MP3-Tag 1.16
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms