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