Add $tags list with combined tags. Improve isValidAudio()

This commit is contained in:
wapmorgan
2019-12-03 03:27:22 +03:00
parent 9049767016
commit d21f67a9e0
2 changed files with 74 additions and 48 deletions
+1 -6
View File
@@ -147,13 +147,8 @@ class Mp3InfoConsoleRunner {
.PHP_EOL;
if ($id3v2 && !empty($audio->tags2)) {
foreach ($audio->tags2 as $tag=>$value) {
foreach ($audio->tags as $tag => $value) {
echo ' '.$tag.': ';
if ($tag == 'COMM') {
foreach ($value as $lang => $comment) {
echo '['.$lang.'] '.$comment['short'].'; '.$comment['actual'].PHP_EOL;
}
} else
echo self::convertToNativeEncoding($value).PHP_EOL;
}
}