Fix unit tests for yt-dlp update

This commit is contained in:
Patrick Robertson
2025-03-04 17:04:23 +00:00
parent be09aa927d
commit 358884c5d1

View File

@@ -17,7 +17,8 @@ class GenericExtractor(Extractor):
if self.ytdlp_update_interval < 0:
return
path = os.path.join('secrets', '.ytdlp-update')
use_secrets = os.path.exists('secrets')
path = os.path.join('secrets' if use_secrets else '', '.ytdlp-update')
next_update_check = None
if os.path.exists(path):
with open(path, "r") as f: