fix: updates monitor to search for episodes that were released after monitor created

This commit is contained in:
2025-06-20 07:34:18 -05:00
parent 2bb2845ead
commit 937e3c6270

View File

@@ -129,7 +129,7 @@ readonly class MonitorTvShowHandler implements HandlerInterface
{ {
static $today = Carbon::today(); static $today = Carbon::today();
$episodeAirDate = Carbon::parse($episodeInShow['air_date']); $episodeAirDate = Carbon::parse($episodeInShow['air_date']);
return $episodeAirDate > $today; return $episodeAirDate >= $today;
} }
private function episodeExists(array $episodeInShow, Map $downloadedEpisodes): bool private function episodeExists(array $episodeInShow, Map $downloadedEpisodes): bool