def do_details(self) -> bool:
return True
- def is_item_older_than_n_days(self, item: ET.Element, n: int) -> bool:
+ def is_item_older_than_n_days(
+ self, item: ET.Element, n: int, default: bool = False
+ ) -> bool:
pubdate = self.find_pubdate(item)
if pubdate is None:
- return False
+ return default
pubdatetime = parse(pubdate)
tzinfo = pubdatetime.tzinfo
now = datetime.datetime.now(tzinfo)