Results 1 to 3 of 3
Thread: tags mp3?
Hybrid View
-
20th July 2010 18:52 #1
tags mp3?
! mp3 getID3. ? , . .
.
-
20th July 2010 23:46 #2
-
20th July 2010 23:48 #3
, . .
-PHP Code:$TaggingFormat = 'ISO-8859-1';
// Initialize getID3 engine
$getID3 = new getID3;
$getID3->setOption(array('encoding'=>$TaggingFormat));
require_once('getid3/getid3/write.php');
// Initialize getID3 tag-writing module
$tagwriter = new getid3_writetags;
//$tagwriter->filename = '/path/to/file.mp3';
$tagwriter->filename = $row111['mp3_url'];
$tagwriter->tagformats = array('id3v1', 'id3v2.3');
// set various options (optional)
$tagwriter->overwrite_tags = true;
$tagwriter->tag_encoding = $TaggingFormat;
$tagwriter->remove_other_tags = true;
// populate data array
$TagData['title'][] = $row111['title']." (heminei.com)";
$TagData['artist'][] = $row111['artist'];
$TagData['album'][] = '(heminei.com)';
$TagData['year'][] = '';
$TagData['genre'][] = '';
$TagData['comment'][] = '(heminei.com)';
$TagData['track'][] = '';
$tagwriter->tag_data = $TagData;
// write tags
if ($tagwriter->WriteTags()) {
echo 'Successfully wrote tags<br><br><br><hr><br><br>';
if (!empty($tagwriter->warnings)) {
echo 'There were some warnings:<br>'.implode('<br><br>', $tagwriter->warnings);
}
} else {
echo 'Failed to write tags!<br>'.implode('<br><br>', $tagwriter->errors);
}




Reply With Quote

Lenovo ThinkPad 15 IdeaPad 15
5th May 2023, 22:16 in