move ryd to avoid celery missing redis var

This commit is contained in:
simon 2022-01-08 21:10:38 +07:00
parent f62e75f343
commit 8ba9ced833
No known key found for this signature in database
GPG Key ID: 2C15AA5E89985DD4

View File

@ -291,7 +291,6 @@ class YoutubeVideo:
ES_AUTH = CONFIG["application"]["es_auth"] ES_AUTH = CONFIG["application"]["es_auth"]
CACHE_DIR = CONFIG["application"]["cache_dir"] CACHE_DIR = CONFIG["application"]["cache_dir"]
VIDEOS = CONFIG["application"]["videos"] VIDEOS = CONFIG["application"]["videos"]
RYD = CONFIG["downloads"]["integrate_ryd"]
def __init__(self, youtube_id): def __init__(self, youtube_id):
self.youtube_id = youtube_id self.youtube_id = youtube_id
@ -313,7 +312,7 @@ class YoutubeVideo:
break break
self.vid_dict = vid_dict self.vid_dict = vid_dict
if self.RYD: if self.CONFIG["downloads"]["integrate_ryd"]:
self.get_ryd_stats() self.get_ryd_stats()
def get_youtubedl_vid_data(self): def get_youtubedl_vid_data(self):