Skip to content

Commit

Permalink
Enhanced minimum availability logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Feramance committed Jan 3, 2024
1 parent 0201f2c commit 0dd1762
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions qBitrr/arss.py
Original file line number Diff line number Diff line change
Expand Up @@ -1624,7 +1624,7 @@ def minimum_availability_check(
) -> bool:
if metadata.Year > datetime.now().year or metadata.Year == 0:
self.logger.trace(
"Skipping %s - Minimum Availability: %s, Dates Cinema:%s, Digital:%s, Physical:%s",
"[AnyY] Skipping %s - Minimum Availability: %s, Dates Cinema:%s, Digital:%s, Physical:%s",
metadata.Title,
db_entry.MinimumAvailability,
metadata.InCinemas,
Expand All @@ -1634,7 +1634,7 @@ def minimum_availability_check(
return False
elif metadata.Year < datetime.now().year and metadata.Year != 0:
self.logger.trace(
"Grabbing %s - Minimum Availability: %s, Dates Cinema:%s, Digital:%s, Physical:%s",
"[AnyY] Grabbing %s - Minimum Availability: %s, Dates Cinema:%s, Digital:%s, Physical:%s",
metadata.Title,
db_entry.MinimumAvailability,
metadata.InCinemas,
Expand All @@ -1649,7 +1649,7 @@ def minimum_availability_check(
and db_entry.MinimumAvailability == 3
):
self.logger.trace(
"Grabbing %s - Minimum Availability: %s, Dates Cinema:%s, Digital:%s, Physical:%s",
"[3Any] Grabbing %s - Minimum Availability: %s, Dates Cinema:%s, Digital:%s, Physical:%s",
metadata.Title,
db_entry.MinimumAvailability,
metadata.InCinemas,
Expand All @@ -1669,7 +1669,7 @@ def minimum_availability_check(
<= datetime.now()
):
self.logger.trace(
"Grabbing %s - Minimum Availability: %s, Dates Cinema:%s, Digital:%s, Physical:%s",
"[3CNN] Grabbing %s - Minimum Availability: %s, Dates Cinema:%s, Digital:%s, Physical:%s",
metadata.Title,
db_entry.MinimumAvailability,
metadata.InCinemas,
Expand All @@ -1679,7 +1679,7 @@ def minimum_availability_check(
return True
else:
self.logger.trace(
"Skipping %s - Minimum Availability: %s, Dates Cinema:%s, Digital:%s, Physical:%s",
"[3CNN] Skipping %s - Minimum Availability: %s, Dates Cinema:%s, Digital:%s, Physical:%s",
metadata.Title,
db_entry.MinimumAvailability,
metadata.InCinemas,
Expand All @@ -1696,7 +1696,7 @@ def minimum_availability_check(
<= datetime.now()
):
self.logger.trace(
"Grabbing %s - Minimum Availability: %s, Dates Cinema:%s, Digital:%s, Physical:%s",
"[3CDN] Grabbing %s - Minimum Availability: %s, Dates Cinema:%s, Digital:%s, Physical:%s",
metadata.Title,
db_entry.MinimumAvailability,
metadata.InCinemas,
Expand All @@ -1706,7 +1706,7 @@ def minimum_availability_check(
return True
else:
self.logger.trace(
"Skipping %s - Minimum Availability: %s, Dates Cinema:%s, Digital:%s, Physical:%s",
"[3CDN] Skipping %s - Minimum Availability: %s, Dates Cinema:%s, Digital:%s, Physical:%s",
metadata.Title,
db_entry.MinimumAvailability,
metadata.InCinemas,
Expand All @@ -1720,7 +1720,7 @@ def minimum_availability_check(
<= datetime.now()
):
self.logger.trace(
"Grabbing %s - Minimum Availability: %s, Dates Cinema:%s, Digital:%s, Physical:%s",
"[3CNP] Grabbing %s - Minimum Availability: %s, Dates Cinema:%s, Digital:%s, Physical:%s",
metadata.Title,
db_entry.MinimumAvailability,
metadata.InCinemas,
Expand All @@ -1730,7 +1730,7 @@ def minimum_availability_check(
return True
else:
self.logger.trace(
"Skipping %s - Minimum Availability: %s, Dates Cinema:%s, Digital:%s, Physical:%s",
"[3CNP] Skipping %s - Minimum Availability: %s, Dates Cinema:%s, Digital:%s, Physical:%s",
metadata.Title,
db_entry.MinimumAvailability,
metadata.InCinemas,
Expand All @@ -1745,7 +1745,7 @@ def minimum_availability_check(
and db_entry.MinimumAvailability == 2
):
self.logger.trace(
"Grabbing %s - Minimum Availability: %s, Dates Cinema:%s, Digital:%s, Physical:%s",
"[2Any] Grabbing %s - Minimum Availability: %s, Dates Cinema:%s, Digital:%s, Physical:%s",
metadata.Title,
db_entry.MinimumAvailability,
metadata.InCinemas,
Expand All @@ -1756,7 +1756,7 @@ def minimum_availability_check(
elif metadata.InCinemas is not None and db_entry.MinimumAvailability == 2:
if datetime.strptime(metadata.InCinemas[:19], "%Y-%m-%d %H:%M:%S") <= datetime.now():
self.logger.trace(
"Grabbing %s - Minimum Availability: %s, Dates Cinema:%s, Digital:%s, Physical:%s",
"[2CNN] Grabbing %s - Minimum Availability: %s, Dates Cinema:%s, Digital:%s, Physical:%s",
metadata.Title,
db_entry.MinimumAvailability,
metadata.InCinemas,
Expand All @@ -1766,7 +1766,7 @@ def minimum_availability_check(
return True
else:
self.logger.trace(
"Skipping %s - Minimum Availability: %s, Dates Cinema:%s, Digital:%s, Physical:%s",
"[2CNN] Skipping %s - Minimum Availability: %s, Dates Cinema:%s, Digital:%s, Physical:%s",
metadata.Title,
db_entry.MinimumAvailability,
metadata.InCinemas,
Expand All @@ -1781,7 +1781,7 @@ def minimum_availability_check(
<= datetime.now()
):
self.logger.trace(
"Grabbing %s - Minimum Availability: %s, Dates Cinema:%s, Digital:%s, Physical:%s",
"[2NDN] Grabbing %s - Minimum Availability: %s, Dates Cinema:%s, Digital:%s, Physical:%s",
metadata.Title,
db_entry.MinimumAvailability,
metadata.InCinemas,
Expand All @@ -1791,7 +1791,7 @@ def minimum_availability_check(
return True
else:
self.logger.trace(
"Skipping %s - Minimum Availability: %s, Dates Cinema:%s, Digital:%s, Physical:%s",
"[2NDN] Skipping %s - Minimum Availability: %s, Dates Cinema:%s, Digital:%s, Physical:%s",
metadata.Title,
db_entry.MinimumAvailability,
metadata.InCinemas,
Expand All @@ -1805,7 +1805,7 @@ def minimum_availability_check(
<= datetime.now()
):
self.logger.trace(
"Grabbing %s - Minimum Availability: %s, Dates Cinema:%s, Digital:%s, Physical:%s",
"[2NNP] Grabbing %s - Minimum Availability: %s, Dates Cinema:%s, Digital:%s, Physical:%s",
metadata.Title,
db_entry.MinimumAvailability,
metadata.InCinemas,
Expand All @@ -1815,7 +1815,7 @@ def minimum_availability_check(
return True
else:
self.logger.trace(
"Skipping %s - Minimum Availability: %s, Dates Cinema:%s, Digital:%s, Physical:%s",
"[2NNP] Skipping %s - Minimum Availability: %s, Dates Cinema:%s, Digital:%s, Physical:%s",
metadata.Title,
db_entry.MinimumAvailability,
metadata.InCinemas,
Expand All @@ -1825,7 +1825,7 @@ def minimum_availability_check(
return False
else:
self.logger.trace(
"Skipping %s - Minimum Availability: %s, Dates Cinema:%s, Digital:%s, Physical:%s",
"[2Any] Skipping %s - Minimum Availability: %s, Dates Cinema:%s, Digital:%s, Physical:%s",
metadata.Title,
db_entry.MinimumAvailability,
metadata.InCinemas,
Expand All @@ -1835,7 +1835,7 @@ def minimum_availability_check(
return False
elif db_entry.MinimumAvailability == 1:
self.logger.trace(
"Grabbing %s - Minimum Availability: %s, Dates Cinema:%s, Digital:%s, Physical:%s",
"[1Any] Grabbing %s - Minimum Availability: %s, Dates Cinema:%s, Digital:%s, Physical:%s",
metadata.Title,
db_entry.MinimumAvailability,
metadata.InCinemas,
Expand All @@ -1845,7 +1845,7 @@ def minimum_availability_check(
return True
else:
self.logger.trace(
"Skipping %s - Minimum Availability: %s, Dates Cinema:%s, Digital:%s, Physical:%s",
"[Else] Skipping %s - Minimum Availability: %s, Dates Cinema:%s, Digital:%s, Physical:%s",
metadata.Title,
db_entry.MinimumAvailability,
metadata.InCinemas,
Expand Down

0 comments on commit 0dd1762

Please sign in to comment.