Changeset 26270 in spip-zone


Ignore:
Timestamp:
Jan 29, 2009, 2:15:41 AM (12 years ago)
Author:
kent1@…
Message:

Modification de la récupération du codec

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/_test_/getID3/inc/recuperer_id3.php

    r26266 r26270  
    4545                        $id3['track'] = array_pop($ThisFileInfo['tags']['id3v2']['track']);
    4646                }
    47                 if(is_array($ThisFileInfo['tags']['id3v2']['track'])){
    48                         $codec_id3 = array_pop($ThisFileInfo['tags']['id3v2']['encoded_by']);   
    49                 }
    50                 $id3['codec'] = ($ThisFileInfo['audio']['encoder']) ? $ThisFileInfo['audio']['encoder'] : $codec_id3;
     47                $id3['codec'] = ($ThisFileInfo['audio']['encoder']) ? $ThisFileInfo['audio']['encoder'] : $ThisFileInfo['audio']['codec'];
    5148                if(is_array($ThisFileInfo['tags']['id3v2']['totaltracks'])){
    5249                        $id3['totaltracks'] = array_pop($ThisFileInfo['tags']['id3v2']['totaltracks']);
Note: See TracChangeset for help on using the changeset viewer.