Fixed audio tag reading issues.
This commit is contained in:
parent
af73cc5502
commit
4089efbbdf
1 changed files with 12 additions and 0 deletions
|
@ -72,36 +72,48 @@ final class FFMPEG {
|
|||
$out->tagTitle = $in->format->tags->title;
|
||||
} elseif(!empty($in->format->tags->TITLE)) {
|
||||
$out->tagTitle = $in->format->tags->TITLE;
|
||||
} elseif(!empty($in->format->tags->Title)) {
|
||||
$out->tagTitle = $in->format->tags->Title;
|
||||
}
|
||||
|
||||
if(!empty($in->format->tags->artist)) {
|
||||
$out->tagArtist = $in->format->tags->artist;
|
||||
} elseif(!empty($in->format->tags->ARTIST)) {
|
||||
$out->tagArtist = $in->format->tags->ARTIST;
|
||||
} elseif(!empty($in->format->tags->Artist)) {
|
||||
$out->tagArtist = $in->format->tags->Artist;
|
||||
}
|
||||
|
||||
if(!empty($in->format->tags->album)) {
|
||||
$out->tagAlbum = $in->format->tags->album;
|
||||
} elseif(!empty($in->format->tags->ALBUM)) {
|
||||
$out->tagAlbum = $in->format->tags->ALBUM;
|
||||
} elseif(!empty($in->format->tags->Album)) {
|
||||
$out->tagAlbum = $in->format->tags->Album;
|
||||
}
|
||||
|
||||
if(!empty($in->format->tags->date)) {
|
||||
$out->tagDate = $in->format->tags->date;
|
||||
} elseif(!empty($in->format->tags->DATE)) {
|
||||
$out->tagDate = $in->format->tags->DATE;
|
||||
} elseif(!empty($in->format->tags->Date)) {
|
||||
$out->tagDate = $in->format->tags->Date;
|
||||
}
|
||||
|
||||
if(!empty($in->format->tags->comment)) {
|
||||
$out->tagComment = $in->format->tags->comment;
|
||||
} elseif(!empty($in->format->tags->COMMENT)) {
|
||||
$out->tagComment = $in->format->tags->COMMENT;
|
||||
} elseif(!empty($in->format->tags->Comment)) {
|
||||
$out->tagComment = $in->format->tags->Comment;
|
||||
}
|
||||
|
||||
if(!empty($in->format->tags->genre)) {
|
||||
$out->tagGenre = $in->format->tags->genre;
|
||||
} elseif(!empty($in->format->tags->GENRE)) {
|
||||
$out->tagGenre = $in->format->tags->GENRE;
|
||||
} elseif(!empty($in->format->tags->Genre)) {
|
||||
$out->tagGenre = $in->format->tags->Genre;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue