NicholasDawson / ArchiverForGooglePhotos

A tool to maintain an archive/mirror of your Google Photos library for backup purposes.
GNU General Public License v3.0
196 stars 29 forks source link

Exe stops right after starting #6

Closed BalazsAdorjan closed 3 years ago

BalazsAdorjan commented 3 years ago

Followed the instructions, everything seemed fine, but the exe doesn't start downloading. Managed to time this screenshot just right, before it quits.

image image

Snuggle commented 3 years ago

I'm also encountering this same issue on macOS. This seems to be caused by a request's page having just a 'nextPageToken' but not any mediaItems. I have roughly 11,850 photos/videos in my Google Photos.

System Info

macOS Monterey v12.0 (Beta) ArchiverForGooglePhotos v2.0.0 Python v3.9.1

Error encountered

=============
SESSION STATS
=============
Seconds: 505.34s
Downloads: 0 items
Traceback (most recent call last):
  File "/Volumes/Homesweet/GooglePhotoArchiver/gparch_cli.py", line 127, in <module>
    account.download_library()
  File "/Volumes/Homesweet/GooglePhotoArchiver/gparch.py", line 281, in download_library
    items = self.process_media_items(self.list_media_items(), self.lib_dir)
  File "/Volumes/Homesweet/GooglePhotoArchiver/gparch.py", line 356, in list_media_items
    media_items_list += request["mediaItems"]
KeyError: 'mediaItems'

Example print(request)

{'nextPageToken': 'jSfXfpoJigNozSwinLJzjSfXfpoJigNozSwinLJzjSfXfpoJigNozSwinLJzjSfXfpoJigNozSwinLJzjSfXfpoJigNozSwinLJz'}