How to add custom tag to MP3 file?

Can someone explain to me how to add a user-defined tag to an MP3 file using MP3 :: Tag in Perl? I made some sample programs.

# Created an object
$mp3 = MP3::Tag->new($filename);

# Getting the already defined tags for the file
@tags = $mp3->get_tags();

My question is: how to add a user defined tag, like a tag Name?

+3
source share
1 answer

Slightly edited from synopsis module

$mp3->update_tags({name => 'blah blah'});    # Edit in-memory, and commit to file
+3
source

Source: https://habr.com/ru/post/1788944/


All Articles