add check that media items have a published date from metadata set before checking for download caps when filtering, resolves #519 (related to #515)
This commit is contained in:
1 parent
69a824e334
commit
68de807483
1 file changed
+9
@@ -100,6 +100,15 @@ def filter_filter_text(instance: Media):
|
||||
|
||||
|
||||
def filter_max_cap(instance: Media):
|
||||
|
||||
if instance.published is None:
|
||||
log.debug(
|
||||
f"Media: {instance.source} / {instance} has no published date "
|
||||
f"set (likely not downloaded metadata) so not filtering based on "
|
||||
f"publish date"
|
||||
)
|
||||
return False
|
||||
|
||||
max_cap_age = instance.source.download_cap_date
|
||||
if not max_cap_age:
|
||||
log.debug(
|
||||
|
||||
Reference in new issue
Block a user