Remove debug text

This commit is contained in:
DariusIII
2025-11-24 02:01:31 +01:00
parent f3da7ecb53
commit 52d10f7a52
-10
View File
@@ -39,18 +39,13 @@ class FetchMovieByImdb extends Command
$this->info('Force fetching movie data for IMDb id: tt'.$imdbId.' ...');
// Clear all caches for this movie to force fresh data retrieval
$this->line('Clearing cached data for this movie...');
\Cache::forget('tmdb_movie_'.md5('tt'.$imdbId));
\Cache::forget('trakt_movie_'.md5($imdbId));
\Cache::forget('imdb_movie_'.md5($imdbId));
\Cache::forget('omdb_movie_'.md5($imdbId));
$this->line('Debug: Calling updateMovieInfo()...');
$ok = $movie->updateMovieInfo($imdbId);
$this->line('Debug: updateMovieInfo returned: '.($ok ? 'true' : 'false'));
if (! $ok) {
$this->error('Failed to fetch/update movie data for tt'.$imdbId.'.');
@@ -73,11 +68,6 @@ class FetchMovieByImdb extends Command
$this->line('Genre: '.($updated->genre ?? 'N/A'));
$this->line('Cover: '.(($updated->cover ?? 0) == 1 ? 'Yes' : 'No'));
// Check if cover file exists
$coverPath = storage_path('covers/movies/'.$imdbId.'-cover.jpg');
$this->line('Debug: Cover file path: '.$coverPath);
$this->line('Debug: Cover file exists: '.(file_exists($coverPath) ? 'Yes' : 'No'));
return self::SUCCESS;
}
}