Assembla home | Assembla project page
 

Changeset 1002

Show
Ignore:
Timestamp:
06/18/08 22:47:44 (5 months ago)
Author:
Pernod
Message:

Enhanced usage of images in ID3 tags. If multiple images exist in a tag then the one where PictureTypeId?=$03 'Cover (front)' is preferred.

Fixes #150

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/swisscenter/ext/getid3/module.tag.id3v2.php

    r995 r1002  
    12061206                        $parsedFrame['data']             = substr($parsedFrame['data'], $frame_terminatorpos + strlen($this->TextEncodingTerminatorLookup($frame_textencoding))); 
    12071207                        if (!empty($parsedFrame['framenameshort']) && !empty($parsedFrame['data'])) { 
    1208                                 $ThisFileInfo['id3v2']['comments'][$parsedFrame['framenameshort']][] = getid3_lib::iconv_fallback($parsedFrame['encoding'], $ThisFileInfo['id3v2']['encoding'], $parsedFrame['data']);                   
     1208                          if (!isset($ThisFileInfo['id3v2']['comments'][$parsedFrame['framenameshort']]) || ($parsedFrame['picturetypeid'] == 3)) { 
     1209                                        $ThisFileInfo['id3v2']['comments'][$parsedFrame['framenameshort']][0] = getid3_lib::iconv_fallback($parsedFrame['encoding'], $ThisFileInfo['id3v2']['encoding'], $parsedFrame['data']); 
     1210                                } 
    12091211                        } 
    12101212