mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-25 04:27:22 +08:00
Announce Log
This commit is contained in:
@@ -378,7 +378,12 @@ class Update extends Install
|
||||
]);
|
||||
NexusDB::cache_del("nexus_plugin_store_all");
|
||||
}
|
||||
|
||||
/**
|
||||
* @since 1.9.7
|
||||
*/
|
||||
if (env("CLICKHOUSE_HOST")) {
|
||||
Artisan::call("clickhouse:migrate");
|
||||
}
|
||||
}
|
||||
|
||||
public function runExtraMigrate()
|
||||
|
||||
@@ -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