Audio::File::Tag(3pm)
πΈ Audio::File::Tag π
okay so bestie, welcome to the manual page for Audio::File::Tag, section 3pm of the User Contributed Perl Documentation. it's giving very much "backstage pass to the tag system" energy. let's get into it β¨
β¨ NAME β¨
Audio::File::Tag β abstracts the tag of an audio file π
π¦ DESCRIPTION π¦
so like. Audio::File::Tag is the base class for the other file-format-independent tag classes β think Audio::File::Flac::Tag or Audio::File::Ogg::Tag. it's the mother of the tag classes basically. mother is mothering π
and here's the tea: you should not use this class yourself, unless you're out here writing your own file-format-dependent subclass. if that's not you, this is not your moment. step away from the base class, babe π
π METHODS π
π new
Constructor energy β¨ creates a new Audio::File::Tag object.
but bestie, you shouldn't use this method yourself. it gets called automatically by the filetype-dependent subclasses of Audio::File::Type. it's an internal thing. the subclasses handle it. periodt π
π init
Initializes the object. it's called by the constructor, and it's empty by default. it's ought to be overwritten by subclasses. so if you're writing a subclass, this is your moment to shine β
π title
using title() you can get or set the tags title field.
- call it with no argument β it returns the current content of the title field.
- call it with a scalar argument β it sets the title field to whatever that argument contains.
and here's the group-chat note: the methods artist(), album(), comment(), genre(), year(), track(), disc() and total() are all called in the exact same way. same vibe, different field. iykyk π
π¦ artist
Set/get the artist field in the files tag. π€
πΈ album
Set/get the album field in the files tag. πΏ
π¬ comment
Set/get the comment field in the files tag. π¨οΈ
π΅ genre
Set/get the genre field in the files tag. π§
π year
Set/get the year field in the files tag. β³
π’ track
Set/get the track field in the files tag. π―
πΏ disc
Set/get the disc field in the files tag. π
π total
Set/get the total number of tracks. π₯
π§ all
Set/get all the tags. π
to set them, you pass a hash reference β with the names of the tags as keys, and the tag values as hash values. lowkey elegant, honestly.
if you pass no argument, it returns a hash reference. no cap.
π is_empty
Returns whether all tag fields are empty or not. simple. iconic. a vibe check for your tags β¨
π save
Saves the changed tag information. Not yet implemented. π yeah. we know. it's giving unfinished business fr fr.
π TODO π
- Implement writing tags βοΈ (one day bestie, one day)
π«Ά AUTHOR π«Ά
Florian Ragwitz <flora@cpan.org> π
β COPYRIGHT AND LICENSE β
Copyright (C) Florian Ragwitz
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
β οΈ real talk: that's the license text, keep it as-is, don't be out here editing legal stuff, bestie. that's not the move. π
and that's the whole page!! π this was perl v5.36.0, dated 2022-11-20, and the page is Audio::File::Tag(3pm) β slay, go forth and subclass responsibly, mwah π
β¨π¦π
π¦ where this page comes from
- debian bookworm: libaudio-file-perl 0.11-5 Β· GPL-2.0-or-later
- debian trixie: libaudio-file-perl 0.11-5 Β· GPL-2.0-or-later
- ubuntu noble: libaudio-file-perl 0.11-5 Β· GPL-2.0-or-later
- ubuntu resolute: libaudio-file-perl 0.11-5 Β· GPL-2.0-or-later
- ubuntu stonking: libaudio-file-perl 0.11-5 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms