Fix album list pollution

Album list will become polluted with redundant single album share images, we can assume that no shared albums other than ones used for public links will be made.

This will not fix long pagination responses due to many shared albums.
This commit is contained in:
Matthew Burnett 2019-01-22 17:09:55 -05:00
parent 0a57e89487
commit 3424749e02

View file

@ -143,7 +143,10 @@ public List<GooglePhotosAlbumInfo> GetAlbumList()
Name = album.title
};
albumList.Add(AlbumInfo);
if (album.shareInfo == null)
{
albumList.Add(AlbumInfo);
}
}
pageToken = albums.nextPageToken;
}
@ -233,6 +236,7 @@ public class GooglePhotosAlbum
public string coverPhotoBaseUrl { get; set; }
public string coverPhotoMediaItemId { get; set; }
public string isWriteable { get; set; }
public GooglePhotosShareInfo shareInfo { get; set; }
public string mediaItemsCount { get; set; }
}