MP3::Tag::Inf(3pm)

πŸ“¦
version 1.16 Β· 2 versions
  • 1.16 Β· debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking (latest)
  • 1.13 Β· ubuntu jammy
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

✨ 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 πŸ’…βœ¨πŸŒΈ