From 2ceb1b701a9b6e36e54a0d90e4130035008d3f42 Mon Sep 17 00:00:00 2001 From: simon Date: Wed, 15 Jun 2022 15:39:24 +0700 Subject: [PATCH] consolidate config of cookie revoke --- tubearchivist/home/src/download/yt_dlp_base.py | 3 +++ tubearchivist/home/views.py | 3 --- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tubearchivist/home/src/download/yt_dlp_base.py b/tubearchivist/home/src/download/yt_dlp_base.py index 458241cd..2ce9c7a5 100644 --- a/tubearchivist/home/src/download/yt_dlp_base.py +++ b/tubearchivist/home/src/download/yt_dlp_base.py @@ -94,6 +94,9 @@ class CookieHandler: def revoke(): """revoke cookie""" RedisArchivist().del_message("cookie") + RedisArchivist().set_message( + "config", False, path=".downloads.cookie_import" + ) print("cookie: revoked") def validate(self): diff --git a/tubearchivist/home/views.py b/tubearchivist/home/views.py index 3a38f926..f99d3ae7 100644 --- a/tubearchivist/home/views.py +++ b/tubearchivist/home/views.py @@ -846,9 +846,6 @@ class SettingsView(View): handler.import_cookie() valid = handler.validate() if not valid: - RedisArchivist().set_message( - "config", False, path=".downloads.cookie_import" - ) handler.revoke() message = { "status": "message:setting",