From 73e1bba541d51156d46e1f0531405fc7cafa3072 Mon Sep 17 00:00:00 2001 From: simon Date: Fri, 23 Dec 2022 23:00:35 +0700 Subject: [PATCH] fix refactor codelist init --- tubearchivist/home/src/download/yt_dlp_handler.py | 2 +- tubearchivist/home/src/index/comments.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/tubearchivist/home/src/download/yt_dlp_handler.py b/tubearchivist/home/src/download/yt_dlp_handler.py index a0f01eb..c25b161 100644 --- a/tubearchivist/home/src/download/yt_dlp_handler.py +++ b/tubearchivist/home/src/download/yt_dlp_handler.py @@ -143,7 +143,7 @@ class DownloadPostProcess: def get_comments(self): """get comments from youtube""" - CommentList(self.download.videos).index(send_notifications=True) + CommentList(self.download.videos).index(notify=True) class VideoDownloader: diff --git a/tubearchivist/home/src/index/comments.py b/tubearchivist/home/src/index/comments.py index 414d875..29bdeff 100644 --- a/tubearchivist/home/src/index/comments.py +++ b/tubearchivist/home/src/index/comments.py @@ -146,6 +146,7 @@ class Comments: if not self.is_activated: return + print(f"{self.youtube_id}: upload comments") _, _ = ElasticWrap(self.es_path).put(self.json_data) vid_path = f"ta_video/_update/{self.youtube_id}"