Fix archive file path to use user directory instead of read-only /app

This commit is contained in:
Jarian Cottingham 2026-02-21 14:13:45 -06:00
parent 2fb3dd48c5
commit cb1a201107

View File

@ -24,8 +24,8 @@ class YouTubeCLI:
self.config = self.load_config(config_path) self.config = self.load_config(config_path)
self.original_query = None self.original_query = None
self.current_page = 1 self.current_page = 1
# Use a more reliable path for the archive file # Use a proper user directory for the archive file
self.archive_file = Path("/app/downloads") / "downloaded_videos.json" self.archive_file = Path.home() / ".config" / "youtube_cli" / "downloaded_videos.json"
self.downloaded_videos = self.load_archive() self.downloaded_videos = self.load_archive()
def get_yt_dlp_version(self): def get_yt_dlp_version(self):