MP3::Tag::Inf(3)

πŸ“¦ version 1.16, in nixos 26.05, nixpkgs unstable

πŸŽ€ NAME πŸŽ€

okay so MP3::Tag::Inf(3) is literally the Module for parsing .inf files associated with music tracks. bestie. That's the whole vibe: it handles those .inf files associated with your music tracks. 🎡✨

🌸 SYNOPSIS 🌸

here's the group-chat recap of how you call it:

  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();

also: see MP3::Tag β€” that's the main character this module hangs out with. 🫢

πŸ¦‹ DESCRIPTION πŸ¦‹

MP3::Tag::Inf is designed to be called from the MP3::Tag module. No solo era, okay? It is literally built to be part of that ecosystem.

It parses the content of .inf file (created, e.g., by cdda2wav). So yes, those little info files get read and understood. πŸ’…

πŸ’– parse() πŸ’–

             ($title, $artist, $album, $year, $comment, $track) =
                $mp3inf->parse($what);

parse_filename() extracts information about artist, title, track number, album and year from the .inf file. $what is optional; it may be title, track, artist, album, year or comment. If $what is defined parse() will return only this element.

side quest alert: as a side effect of this call, $mp3inf->{info} is set to the hash reference with the content of particular elements of the .inf file. So it's not just a return-value situation β€” the info hash gets filled too. πŸ”₯

the usual crew that's typically present in there:

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 too:

Year
Trackcomment

πŸ’€ POD ERRORS πŸ’€

Hey! The above document had some coding errors, which are explained below:

Around line 30:

=over without closing =back
not the =over without its =back bestie 😭 the POD police said something. Keep it in mind.

okay that's the whole page! this footer energy says: perl v5.42.3, dated 2022-11-25, and it's the MP3::Tag::Inf(3) manual page. mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from