Skip to content

Commit

Permalink
Remove minimum any year prior check
Browse files Browse the repository at this point in the history
  • Loading branch information
Feramance committed Jan 3, 2024
1 parent 0dd1762 commit d7825ef
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions qBitrr/arss.py
Original file line number Diff line number Diff line change
Expand Up @@ -1622,27 +1622,27 @@ def minimum_availability_check(
db_entry: MoviesModel | MoviesModelv5 = None,
metadata: MoviesMetadataModel = None,
) -> bool:
if metadata.Year > datetime.now().year or metadata.Year == 0:
self.logger.trace(
"[AnyY] Skipping %s - Minimum Availability: %s, Dates Cinema:%s, Digital:%s, Physical:%s",
metadata.Title,
db_entry.MinimumAvailability,
metadata.InCinemas,
metadata.DigitalRelease,
metadata.PhysicalRelease,
)
return False
elif metadata.Year < datetime.now().year and metadata.Year != 0:
self.logger.trace(
"[AnyY] Grabbing %s - Minimum Availability: %s, Dates Cinema:%s, Digital:%s, Physical:%s",
metadata.Title,
db_entry.MinimumAvailability,
metadata.InCinemas,
metadata.DigitalRelease,
metadata.PhysicalRelease,
)
return True
elif (
# if metadata.Year > datetime.now().year or metadata.Year == 0:
# self.logger.trace(
# "[AnyY] Skipping %s - Minimum Availability: %s, Dates Cinema:%s, Digital:%s, Physical:%s",
# metadata.Title,
# db_entry.MinimumAvailability,
# metadata.InCinemas,
# metadata.DigitalRelease,
# metadata.PhysicalRelease,
# )
# return False
# elif metadata.Year < datetime.now().year and metadata.Year != 0:
# self.logger.trace(
# "[AnyY] Grabbing %s - Minimum Availability: %s, Dates Cinema:%s, Digital:%s, Physical:%s",
# metadata.Title,
# db_entry.MinimumAvailability,
# metadata.InCinemas,
# metadata.DigitalRelease,
# metadata.PhysicalRelease,
# )
# return True
if (
metadata.InCinemas is None
and metadata.DigitalRelease is None
and metadata.PhysicalRelease is None
Expand Down

0 comments on commit d7825ef

Please sign in to comment.