MP3::Tag::Inf(3pm)
β¨ NAME β¨
MP3::Tag::Inf β bestie, this is the module that parses those .inf files that hang out next to your music tracks π
πΈ SYNOPSIS πΈ
okay so literally all you do is this:
my $mp3inf = MP3::Tag::Inf->new($filename); # Name of MP3 or .INF file
# or an MP3::Tag::File object
($title, $artist, $album, $year, $comment, $track) = $mp3inf->parse();
and then you go peek at MP3::Tag too, iykyk π
π¦ DESCRIPTION π¦
MP3::Tag::Inf is built to be called from the MP3::Tag module. That's its whole job. Its moment. Its main character era π
It parses the content of a .inf file (the kind that gets created, e.g., by cdda2wav).
π parse() π
($title, $artist, $album, $year, $comment, $track) =
$mp3inf->parse($what);
So parse_filename() pulls info about artist, title, track number, album and year out of the .inf file β¨
$what is optional β it can be title, track, artist, album, year or comment. If $what is defined, then parse() returns only that one element. Just the one. No extras. Very demure, very mindful π
And here's the side quest: as a side effect of this call, $mp3inf->{info} gets set to the hash reference with the content of particular elements of the .inf file π«Ά
Typically present are these fields:
CDINDEX_DISCID
CDDB_DISCID
MCN
ISRC
Albumperformer
Performer
Albumtitle
Tracktitle
Tracknumber
Trackstart
Tracklength
Pre-emphasis
Channels
Copy_permitted
Endianess
Index
and these fields are also recognized:
Year
Trackcomment
π POD ERRORS π
not me having to tell you this but... the document above had some coding errors, and here they are explained below π
Around line 30:
=over without closing =back
like, the =over never got its =back. it's giving abandoned. it's giving unfinished business π
perl v5.36.0 Β· 2022-12-30 Β· MP3::Tag::Inf(3pm)
that's the tea, bestie β this page came from perl v5.36.0, dated 2022-12-30, and it's the manual for MP3::Tag::Inf(3pm). go parse something iconic π
β¨πΈ
π¦ where this page comes from
- debian bookworm: libmp3-tag-perl 1.16-1 Β· Artistic-1.0-Perl
- debian trixie: libmp3-tag-perl 1.16-1 Β· Artistic-1.0-Perl
- ubuntu noble: libmp3-tag-perl 1.16-1 Β· Artistic-1.0-Perl
- ubuntu resolute: libmp3-tag-perl 1.16-1 Β· Artistic-1.0-Perl
- ubuntu stonking: libmp3-tag-perl 1.16-1 Β· Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms