mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-28 06:57:22 +08:00
Merge pull request #334 from koalang/php8
Update TechnicalInformation.php
This commit is contained in:
@@ -98,6 +98,9 @@ class TechnicalInformation
|
|||||||
if (!empty($values['Language'])) {
|
if (!empty($values['Language'])) {
|
||||||
$audioInfoArr[] = $values['Language'];
|
$audioInfoArr[] = $values['Language'];
|
||||||
}
|
}
|
||||||
|
if (!empty($values['Title'])) {
|
||||||
|
$audioInfoArr[] = $values['Title'];
|
||||||
|
}
|
||||||
if (!empty($values['Format'])) {
|
if (!empty($values['Format'])) {
|
||||||
$audioInfoArr[] = $values['Format'];
|
$audioInfoArr[] = $values['Format'];
|
||||||
}
|
}
|
||||||
@@ -121,15 +124,18 @@ class TechnicalInformation
|
|||||||
if (strpos($parentKey, 'Text') === false) {
|
if (strpos($parentKey, 'Text') === false) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
$audioInfoArr = [];
|
$subtitlesInfoArr = [];
|
||||||
if (!empty($values['Language'])) {
|
if (!empty($values['Language'])) {
|
||||||
$audioInfoArr[] = $values['Language'];
|
$subtitlesInfoArr[] = $values['Language'];
|
||||||
|
}
|
||||||
|
if (!empty($values['Title'])) {
|
||||||
|
$subtitlesInfoArr[] = $values['Title'];
|
||||||
}
|
}
|
||||||
if (!empty($values['Format'])) {
|
if (!empty($values['Format'])) {
|
||||||
$audioInfoArr[] = $values['Format'];
|
$subtitlesInfoArr[] = $values['Format'];
|
||||||
}
|
}
|
||||||
if (!empty($audioInfoArr)) {
|
if (!empty($subtitlesInfoArr)) {
|
||||||
$result[$parentKey] = implode(" ", $audioInfoArr);
|
$result[$parentKey] = implode(" ", $subtitlesInfoArr);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return $result;
|
return $result;
|
||||||
|
|||||||
Reference in New Issue
Block a user