some progress

This commit is contained in:
Doar Mihai
2026-03-07 13:29:50 +02:00
parent bf5c92c239
commit 72c2cd9485
15 changed files with 460 additions and 42 deletions
@@ -58,7 +58,12 @@ class FetchItemDataCommand extends Command
{
switch ($type){
case ItemToFetch::TYPE_MOVIE:
return MovieProcessingService::getBatch($batch, $job);
$items = MovieProcessingService::getBatch($batch, $job);
if ($items->count() == 0){
$items = MovieProcessingService::getMissingMoviesBatch($batch, $job);
}
return $items;
case ItemToFetch::TYPE_TV_SERIES:
return ShowProcessingService::getBatch($batch, $job, $tmdbId);
}
@@ -52,7 +52,7 @@ class FetchExportItemsCommand extends Command
if (null === $decodedLine) {
continue;
}
echo '.';
$this->processItem($decodedLine, $type);
}
}