From 48be13fb2a4e6351cac03958e93913ba0333d7e8 Mon Sep 17 00:00:00 2001 From: Dave Mateer Date: Mon, 2 Jun 2025 13:02:19 +0100 Subject: [PATCH] catch for if self.comments are true but no actual comments in video (#303) * catch for if self.comments are true but no actual comments in video * simplifies check code --------- Co-authored-by: Miguel Sozinho Ramalho <19508417+msramalho@users.noreply.github.com> --- .../modules/generic_extractor/generic_extractor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/auto_archiver/modules/generic_extractor/generic_extractor.py b/src/auto_archiver/modules/generic_extractor/generic_extractor.py index e56167a..522a53d 100644 --- a/src/auto_archiver/modules/generic_extractor/generic_extractor.py +++ b/src/auto_archiver/modules/generic_extractor/generic_extractor.py @@ -303,7 +303,7 @@ class GenericExtractor(Extractor): if "description" in video_data and not result.get("content"): result.set_content(video_data["description"]) # extract comments if enabled - if self.comments: + if self.comments and video_data.get("comments", []) is not None: result.set( "comments", [