diff --git a/app/Models/Keyword.php b/app/Models/Keyword.php index b46939c..2869d89 100644 --- a/app/Models/Keyword.php +++ b/app/Models/Keyword.php @@ -6,5 +6,8 @@ use Illuminate\Database\Eloquent\Model; class Keyword extends Model { - // + protected $fillable = [ + 'tmdb_id', + 'name', + ]; } diff --git a/app/Service/MediaProcessing/ShowProcessingService.php b/app/Service/MediaProcessing/ShowProcessingService.php index ddf887b..75236aa 100644 --- a/app/Service/MediaProcessing/ShowProcessingService.php +++ b/app/Service/MediaProcessing/ShowProcessingService.php @@ -9,4 +9,6 @@ class ShowProcessingService implements ProcessingInterface { // TODO: Implement process() method. } + + } diff --git a/routes/console.php b/routes/console.php index ed5fc49..49b6450 100644 --- a/routes/console.php +++ b/routes/console.php @@ -15,23 +15,23 @@ Artisan::command('inspire', function () { Schedule::command(FetchExportCommand::class, ['movies'])->weeklyOn(6, '8:00'); Schedule::command(FetchExportCommand::class, ['tv_series'])->weeklyOn(6, '9:00'); -Schedule::command(FetchExportItemsCommand::class, ['movie'])->twiceDaily(17,19); -Schedule::command(FetchExportItemsCommand::class, ['movie', '50', 'AlternativeTitles'])->twiceDaily(14,23); -Schedule::command(FetchExportItemsCommand::class, ['movie', '50', 'Credits'])->twiceDaily(14,23); -Schedule::command(FetchExportItemsCommand::class, ['movie', '50', 'Images'])->twiceDaily(14,23); -Schedule::command(FetchExportItemsCommand::class, ['movie', '50', 'Keywords'])->twiceDaily(14,23); -Schedule::command(FetchExportItemsCommand::class, ['movie', '50', 'Releases'])->twiceDaily(14,23); -Schedule::command(FetchExportItemsCommand::class, ['movie', '50', 'Translations'])->twiceDaily(14,23); -Schedule::command(FetchExportItemsCommand::class, ['movie', '50', 'Similar'])->twiceDaily(14,23); -Schedule::command(FetchExportItemsCommand::class, ['movie', '50', 'Recommendations'])->twiceDaily(14,23); -Schedule::command(FetchExportItemsCommand::class, ['movie', '50', 'Reviews'])->twiceDaily(14,23); -Schedule::command(FetchExportItemsCommand::class, ['movie', '50', 'Lists'])->twiceDaily(14,23); -Schedule::command(FetchExportItemsCommand::class, ['movie', '50', 'Changes'])->twiceDaily(14,23); -Schedule::command(FetchExportItemsCommand::class, ['movie', '50', 'Videos'])->twiceDaily(14,23); -Schedule::command(FetchExportItemsCommand::class, ['movie', '50', 'WatchProviders'])->twiceDaily(14,23); -Schedule::command(FetchExportItemsCommand::class, ['movie', '50', 'ExternalIds'])->twiceDaily(14,23); +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(FetchExportItemsCommand::class, ['tv_series'])->twiceDaily(17,19); +Schedule::command(FetchItemDataCommand::class, ['tv_series'])->twiceDaily(17,19); // fetch items data