Announce Log

This commit is contained in:
xiaomlove
2025-06-29 20:47:23 +07:00
parent 83cab0da09
commit 0e798355b4
31 changed files with 1105 additions and 44 deletions
+6 -1
View File
@@ -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()
+7 -2
View File
@@ -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'] ?? '';