mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-24 12:07:23 +08:00
Announce Log
This commit is contained in:
@@ -20,12 +20,12 @@ class TechnicalInformation
|
||||
$result = [];
|
||||
$parentKey = "";
|
||||
foreach ($arr as $key => $value) {
|
||||
$value = trim($value);
|
||||
$value = $this->trim($value);
|
||||
if (empty($value)) {
|
||||
continue;
|
||||
}
|
||||
$rowKeyValue = explode(':', $value);
|
||||
$rowKeyValue = array_filter(array_map('trim', $rowKeyValue));
|
||||
$rowKeyValue = array_filter(array_map([$this, 'trim'], $rowKeyValue));
|
||||
if (count($rowKeyValue) == 1) {
|
||||
$parentKey = $rowKeyValue[0];
|
||||
} elseif (count($rowKeyValue) == 2) {
|
||||
@@ -39,6 +39,11 @@ class TechnicalInformation
|
||||
|
||||
}
|
||||
|
||||
private function trim(string $value): string
|
||||
{
|
||||
return trim($value, " \n\r\t\v\0\u{A0}");
|
||||
}
|
||||
|
||||
public function getRuntime()
|
||||
{
|
||||
return $this->mediaInfoArr['General']['Duration'] ?? '';
|
||||
|
||||
Reference in New Issue
Block a user