mirror of
https://github.com/koel/koel
synced 2024-11-28 06:50:27 +00:00
Disable sync time limit in console
This commit is contained in:
parent
eb9e9a2317
commit
946f335cc2
1 changed files with 3 additions and 1 deletions
|
@ -34,7 +34,9 @@ class Media
|
||||||
*/
|
*/
|
||||||
public function sync($path = null, SyncMedia $syncCommand = null)
|
public function sync($path = null, SyncMedia $syncCommand = null)
|
||||||
{
|
{
|
||||||
set_time_limit(env('APP_MAX_SCAN_TIME', 600));
|
if (!app()->runningInConsole()) {
|
||||||
|
set_time_limit(env('APP_MAX_SCAN_TIME', 600));
|
||||||
|
}
|
||||||
|
|
||||||
$path = $path ?: Setting::get('media_path');
|
$path = $path ?: Setting::get('media_path');
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue