From 8ba9ced8337edb70c2798e0b1a183b153d4e0321 Mon Sep 17 00:00:00 2001 From: simon Date: Sat, 8 Jan 2022 21:10:38 +0700 Subject: [PATCH] move ryd to avoid celery missing redis var --- tubearchivist/home/src/index.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tubearchivist/home/src/index.py b/tubearchivist/home/src/index.py index 63a1349..55a57e4 100644 --- a/tubearchivist/home/src/index.py +++ b/tubearchivist/home/src/index.py @@ -291,7 +291,6 @@ class YoutubeVideo: ES_AUTH = CONFIG["application"]["es_auth"] CACHE_DIR = CONFIG["application"]["cache_dir"] VIDEOS = CONFIG["application"]["videos"] - RYD = CONFIG["downloads"]["integrate_ryd"] def __init__(self, youtube_id): self.youtube_id = youtube_id @@ -313,7 +312,7 @@ class YoutubeVideo: break self.vid_dict = vid_dict - if self.RYD: + if self.CONFIG["downloads"]["integrate_ryd"]: self.get_ryd_stats() def get_youtubedl_vid_data(self):