WIP: storage-fix-local-nas work before playlist controls feature
Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
This commit is contained in:
1 parent
6b3ab5b65e
commit
c160242dbc
46 files changed
+5365
-815
No files matched your search
@@ -30,10 +30,15 @@ class NasSyncVideoJob implements ShouldQueue
|
||||
// Video uploads must keep the local file until GenerateHlsJob finishes.
|
||||
if ($this->video->type === 'music') {
|
||||
$nas->deleteLocalVideo($this->video);
|
||||
$nas->deleteLocalAssets($this->video);
|
||||
}
|
||||
$nas->deleteLocalAssets($this->video);
|
||||
$nas->pruneLocalVideoDir($this->video);
|
||||
} catch (\Throwable $e) {
|
||||
\Illuminate\Support\Facades\Log::warning('NAS syncVideo failed for video ' . $this->video->id . ': ' . $e->getMessage());
|
||||
\Illuminate\Support\Facades\Log::error(
|
||||
'NasSyncVideoJob failed for video #' . $this->video->id .
|
||||
' ("' . $this->video->title . '"): ' . $e->getMessage() .
|
||||
' — local files kept. Run `php artisan nas:repair --force` to retry.'
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user