Fix photos download (remove invalid --convert-all-heic-to-jpeg flag); block duplicate auth requests

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Nate EmmertandClaude Sonnet 4.6 committed 2026-08-13 13:47:03 -04:00
1 parent 02c3e9639e
commit de9f465c42
1 file changed
+4 -1
+4 -1
View File
@@ -982,7 +982,7 @@ class PhotosPage(Gtk.Box):
"--password", password, "--password", password,
"--cookie-directory", cookie_dir, "--cookie-directory", cookie_dir,
"--directory", PHOTOS_MOUNT, "--directory", PHOTOS_MOUNT,
"--convert-all-heic-to-jpeg", "--skip-live-photos",
"--no-progress-bar", "--no-progress-bar",
] ]
if recent: if recent:
@@ -1187,6 +1187,9 @@ class AuthPage(Gtk.Box):
self.pack_start(tfa_card, False, False, 0) self.pack_start(tfa_card, False, False, 0)
def _on_auth(self, btn): def _on_auth(self, btn):
# Kill any previous auth process so only one request goes to Apple
if hasattr(self, "_auth_proc") and self._auth_proc and self._auth_proc.poll() is None:
return # already in flight, do nothing
btn.set_sensitive(False) btn.set_sensitive(False)
btn.set_label("Waiting for Apple…") btn.set_label("Waiting for Apple…")
self._auth_btn = btn self._auth_btn = btn