This commit is contained in:
2025-05-03 17:59:34 +10:00
parent fe463093bc
commit ed5d7ddbee
5 changed files with 10 additions and 4 deletions
+1 -1
View File
@@ -142,7 +142,7 @@ class RSSScraper:
"""Load and return the set of used images."""
try:
data = load_json_file(FILE_PATHS["used_images"], IMAGE_EXPIRATION_DAYS)
return {entry["title"] for entry in data if "title" in entry}
return {entry["url"] for entry in data if "url" in entry}
except Exception as e:
logger.error(f"Error loading used images: {e}")
return set()