39 lines
2.2 KiB
PHP
39 lines
2.2 KiB
PHP
<?php
|
|
|
|
use App\Console\Commands\ItemProcessing\FetchItemDataCommand;
|
|
use App\Console\Commands\TmdbFetch\FetchExportCommand;
|
|
use App\Console\Commands\TmdbFetch\FetchExportItemsCommand;
|
|
use Illuminate\Foundation\Inspiring;
|
|
use Illuminate\Support\Facades\Artisan;
|
|
use Illuminate\Support\Facades\Schedule;
|
|
|
|
Artisan::command('inspire', function () {
|
|
$this->comment(Inspiring::quote());
|
|
})->purpose('Display an inspiring quote')->hourly();
|
|
|
|
// fetch export every week, saturday at 8 and 9
|
|
Schedule::command(FetchExportCommand::class, ['movies'])->weeklyOn(6, '8:00');
|
|
Schedule::command(FetchExportCommand::class, ['tv_series'])->weeklyOn(6, '9:00');
|
|
|
|
Schedule::command(FetchItemDataCommand::class, ['movie'])->twiceDaily(17,19);
|
|
Schedule::command(FetchItemDataCommand::class, ['movie', '50', 'AlternativeTitles'])->twiceDaily(14,23);
|
|
Schedule::command(FetchItemDataCommand::class, ['movie', '50', 'Credits'])->twiceDaily(14,23);
|
|
Schedule::command(FetchItemDataCommand::class, ['movie', '50', 'Images'])->twiceDaily(14,23);
|
|
Schedule::command(FetchItemDataCommand::class, ['movie', '50', 'Keywords'])->twiceDaily(14,23);
|
|
Schedule::command(FetchItemDataCommand::class, ['movie', '50', 'Releases'])->twiceDaily(14,23);
|
|
Schedule::command(FetchItemDataCommand::class, ['movie', '50', 'Translations'])->twiceDaily(14,23);
|
|
Schedule::command(FetchItemDataCommand::class, ['movie', '50', 'Similar'])->twiceDaily(14,23);
|
|
Schedule::command(FetchItemDataCommand::class, ['movie', '50', 'Recommendations'])->twiceDaily(14,23);
|
|
Schedule::command(FetchItemDataCommand::class, ['movie', '50', 'Reviews'])->twiceDaily(14,23);
|
|
Schedule::command(FetchItemDataCommand::class, ['movie', '50', 'Lists'])->twiceDaily(14,23);
|
|
Schedule::command(FetchItemDataCommand::class, ['movie', '50', 'Changes'])->twiceDaily(14,23);
|
|
Schedule::command(FetchItemDataCommand::class, ['movie', '50', 'Videos'])->twiceDaily(14,23);
|
|
Schedule::command(FetchItemDataCommand::class, ['movie', '50', 'WatchProviders'])->twiceDaily(14,23);
|
|
Schedule::command(FetchItemDataCommand::class, ['movie', '50', 'ExternalIds'])->twiceDaily(14,23);
|
|
|
|
Schedule::command(FetchItemDataCommand::class, ['tv_series'])->twiceDaily(17,19);
|
|
|
|
|
|
// fetch items data
|
|
Schedule::command(FetchItemDataCommand::class)->twiceDaily(18,20);
|