Fix archive file path to use user directory instead of read-only /app
This commit is contained in:
parent
2fb3dd48c5
commit
cb1a201107
@ -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):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user