From 0201f2cbbcb5244aeb31f3d81906b7e449661064 Mon Sep 17 00:00:00 2001 From: Feramance Date: Wed, 3 Jan 2024 08:23:57 +0100 Subject: [PATCH] Fixed correct date usage for minimum availability --- qBitrr/arss.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qBitrr/arss.py b/qBitrr/arss.py index 09d5e323..1cf26649 100755 --- a/qBitrr/arss.py +++ b/qBitrr/arss.py @@ -1692,7 +1692,7 @@ def minimum_availability_check( ) and db_entry.MinimumAvailability == 3: if metadata.DigitalRelease is not None: if ( - datetime.strptime(metadata.DigitalRelease[:19], "%Y-%m-%d %H:%M:%S") + datetime.strptime(metadata.PhysicalRelease[:19], "%Y-%m-%d %H:%M:%S") <= datetime.now() ): self.logger.trace( @@ -1716,7 +1716,7 @@ def minimum_availability_check( return False else: if ( - datetime.strptime(metadata.PhysicalRelease[:19], "%Y-%m-%d %H:%M:%S") + datetime.strptime(metadata.DigitalRelease[:19], "%Y-%m-%d %H:%M:%S") <= datetime.now() ): self.logger.trace(