Results 1 to 3 of 3

Thread: tags mp3?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User Heminei's Avatar
    Join Date: May:2007
    Location:
    Posts: 25

    Question tags mp3?

    ! mp3 getID3. ? , . .

    .

  2. #2
    philosophus duratea icaci's Avatar
    Join Date: Oct:2006
    Location: Aachen
    Posts: 2,698
    .
    Internet - it doesn't make you stupid, it just makes your stupidity more accessible to others

  3. #3
    Registered User Heminei's Avatar
    Join Date: May:2007
    Location:
    Posts: 25
    , . .

    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);
        } 
    -

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Copyright © 1999-2011 . .
iskamPC.com | mobility.BG | Bloody's Techblog | | 3D Vision Blog |