From 3dbe0caa523cb365a00fa144c1d69b9d3b4221a2 Mon Sep 17 00:00:00 2001 From: rlaphoenix Date: Mon, 29 Jan 2024 16:28:40 +0000 Subject: [PATCH] Fix Cookie update at the end of dl command --- devine/commands/dl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devine/commands/dl.py b/devine/commands/dl.py index a12f8bd..9d234de 100644 --- a/devine/commands/dl.py +++ b/devine/commands/dl.py @@ -659,7 +659,7 @@ class dl: # update cookies cookie_file = self.get_cookie_path(self.service, self.profile) - if cookie_file.exists(): + if cookie_file: self.save_cookies(cookie_file, service.session.cookies) dl_time = time_elapsed_since(start_time)