Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Transferring albumless photos #585
Basics of transferring albumless photos.
Due to API limitations, this is a somewhat inefficient process. First we make a list of all contained (i.e., belonging to an album) photos that a user has by first listing all the containers and then the contents of those containers, and we store the list of contained items in the job store. We then split the transfer into two branches - one for albums and all of their contents, and one for albumless items. The album branch behaves as expected. The albumless branch lists all items in a user's library, and only transfers those items that don't appear on the list of contained items. This way, we avoid importing items twice.