mirror of
https://github.com/ShareX/ShareX.git
synced 2024-09-30 01:07:21 +13:00
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:
parent
0a57e89487
commit
3424749e02
1 changed files with 5 additions and 1 deletions
|
@ -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; }
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue