mirror of
https://github.com/bellingcat/auto-archiver.git
synced 2026-06-07 19:08:30 +03:00
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>
This commit is contained in:
@@ -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",
|
||||
[
|
||||
|
||||
Reference in New Issue
Block a user