mirror of
https://github.com/bellingcat/auto-archiver.git
synced 2026-06-11 20:58:29 +03:00
Fix unit tests for yt-dlp update
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user