From 5ed80d983d5e6a085cd52d2beea8dfd624590cf0 Mon Sep 17 00:00:00 2001 From: simon Date: Tue, 22 Nov 2022 18:01:27 +0700 Subject: [PATCH] fix deactivated comment extractor --- tubearchivist/home/src/index/comments.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tubearchivist/home/src/index/comments.py b/tubearchivist/home/src/index/comments.py index 569f11b..8f2439c 100644 --- a/tubearchivist/home/src/index/comments.py +++ b/tubearchivist/home/src/index/comments.py @@ -33,7 +33,10 @@ class Comments: self._send_notification(notify) comments_raw, channel_id = self.get_yt_comments() - self.format_comments(comments_raw) + if comments_raw: + self.format_comments(comments_raw) + else: + self.comments_format = [] self.json_data = { "youtube_id": self.youtube_id,