Skip to content

Commit

Permalink
fix: crunchyroll call old episodes before their release date
Browse files Browse the repository at this point in the history
  • Loading branch information
Ziedelth committed Sep 18, 2024
1 parent dd19f71 commit 3bf6bb4
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -152,12 +152,12 @@ class CrunchyrollPlatform :
alreadyFetched: List<Episode>
): List<Episode> {
val list = mutableListOf<Episode>()
val lastWeek = zonedDateTime.minusWeeks(1).toLocalDate()
val lastWeek = zonedDateTime.minusWeeks(1)

episodeVariantService.findAllIdentifierByDateRangeWithoutNextEpisode(
countryCode,
lastWeek.atStartOfDay(Constant.utcZoneId),
lastWeek.atEndOfTheDay(Constant.utcZoneId),
lastWeek.toLocalDate().atStartOfDay(Constant.utcZoneId),
lastWeek.plusSeconds(1).withUTC(),
getPlatform()
).forEach { identifier ->
val crunchyrollId = getCrunchyrollId(identifier) ?: run {
Expand Down

0 comments on commit 3bf6bb4

Please sign in to comment.