|
@@ 648-652 (lines=5) @@
|
| 645 |
|
$parsedFrame['data'] = substr($parsedFrame['data'], $frame_terminatorpos + strlen($frame_textencoding_terminator)); |
| 646 |
|
if (!empty($parsedFrame['framenameshort']) && !empty($parsedFrame['data'])) { |
| 647 |
|
$commentkey = ($parsedFrame['description'] ? $parsedFrame['description'] : (isset($info['id3v2']['comments'][$parsedFrame['framenameshort']]) ? count($info['id3v2']['comments'][$parsedFrame['framenameshort']]) : 0)); |
| 648 |
|
if (!isset($info['id3v2']['comments'][$parsedFrame['framenameshort']]) || !array_key_exists($commentkey, $info['id3v2']['comments'][$parsedFrame['framenameshort']])) { |
| 649 |
|
$info['id3v2']['comments'][$parsedFrame['framenameshort']][$commentkey] = trim(getid3_lib::iconv_fallback($parsedFrame['encoding'], $info['id3v2']['encoding'], $parsedFrame['data'])); |
| 650 |
|
} else { |
| 651 |
|
$info['id3v2']['comments'][$parsedFrame['framenameshort']][] = trim(getid3_lib::iconv_fallback($parsedFrame['encoding'], $info['id3v2']['encoding'], $parsedFrame['data'])); |
| 652 |
|
} |
| 653 |
|
} |
| 654 |
|
//unset($parsedFrame['data']); do not unset, may be needed elsewhere, e.g. for replaygain |
| 655 |
|
|
|
@@ 1096-1100 (lines=5) @@
|
| 1093 |
|
$parsedFrame['data'] = $frame_text; |
| 1094 |
|
if (!empty($parsedFrame['framenameshort']) && !empty($parsedFrame['data'])) { |
| 1095 |
|
$commentkey = ($parsedFrame['description'] ? $parsedFrame['description'] : (!empty($info['id3v2']['comments'][$parsedFrame['framenameshort']]) ? count($info['id3v2']['comments'][$parsedFrame['framenameshort']]) : 0)); |
| 1096 |
|
if (!isset($info['id3v2']['comments'][$parsedFrame['framenameshort']]) || !array_key_exists($commentkey, $info['id3v2']['comments'][$parsedFrame['framenameshort']])) { |
| 1097 |
|
$info['id3v2']['comments'][$parsedFrame['framenameshort']][$commentkey] = getid3_lib::iconv_fallback($parsedFrame['encoding'], $info['id3v2']['encoding'], $parsedFrame['data']); |
| 1098 |
|
} else { |
| 1099 |
|
$info['id3v2']['comments'][$parsedFrame['framenameshort']][] = getid3_lib::iconv_fallback($parsedFrame['encoding'], $info['id3v2']['encoding'], $parsedFrame['data']); |
| 1100 |
|
} |
| 1101 |
|
} |
| 1102 |
|
|
| 1103 |
|
} |