Thread MP3 ID3 Tag (46 answers)
Opened by timehandler at 2012-06-04 15:49

FIFO
 2012-06-12 23:25
#158927 #158927
User since
2005-06-01
469 Artikel
BenutzerIn

user image
Guest timehandler
... nur verstehe ich nicht richtig wie ich die neuen tags an die mp3 datei übergeben kann.


Hi, schon mal ein paar Gedanken:

Du wirfst da munter Tag-Versionen durcheinander, vielleicht schaust Du Dir mal mehr Infos zu ID3-Tags an, z.B. hier.
Die autoinfo()-Methode verwendet primär ID3v2, falls möglich (aus der Doku):

It will as default first try to find a ID3v2-tag to get this information. If this cannot be found it tries to find a ID3v1-tag, then to read an CDDB file, an .inf-file, and if these are not present either, it will use the filename

Hier kannst Du schnell Inkonsistenzen erzeugen, wenn Du geänderte Tags als ID3v1 schreibst.

CPAN:MP3::Tag liefert als Methode zum Tag-Ändern die Methode update_tags():

Code: (dl )
$mp3->update_tags({year => 1866});    # Edit in-memory, and commit to file


ich würde der change_tag()-Sub auch die Objektreferenz $mp3 als Parameter übergeben, das ist erheblich besser nachvollziehbar ...

Bin jetzt echt zu müde, falls möglich schau ich morgen nochmal drüber,
Gruß FIFO
Everyone knows that debugging is twice as hard as writing a program in the first place. So if you're as clever as you can be when you write it, how will you ever debug it? -- Brian Kernighan: "The Elements of Programming Style"

View full thread MP3 ID3 Tag