mirror of
https://github.com/ShareX/ShareX.git
synced 2024-09-30 01:07:21 +13:00
Merge pull request #3907 from matthewburnett/GooglePhotos-patch
Fix empty albums list
This commit is contained in:
commit
33630b84ab
1 changed files with 4 additions and 4 deletions
|
@ -131,11 +131,11 @@ public List<GooglePhotosAlbumInfo> GetAlbumList()
|
|||
|
||||
if (!string.IsNullOrEmpty(response))
|
||||
{
|
||||
GooglePhotosAlbums albums = JsonConvert.DeserializeObject<GooglePhotosAlbums>(response);
|
||||
GooglePhotosAlbums albumsResponse = JsonConvert.DeserializeObject<GooglePhotosAlbums>(response);
|
||||
|
||||
if (albums.albums != null)
|
||||
if (albumsResponse.albums != null)
|
||||
{
|
||||
foreach (GooglePhotosAlbum album in albums.albums)
|
||||
foreach (GooglePhotosAlbum album in albumsResponse.albums)
|
||||
{
|
||||
GooglePhotosAlbumInfo AlbumInfo = new GooglePhotosAlbumInfo
|
||||
{
|
||||
|
@ -148,8 +148,8 @@ public List<GooglePhotosAlbumInfo> GetAlbumList()
|
|||
albumList.Add(AlbumInfo);
|
||||
}
|
||||
}
|
||||
pageToken = albums.nextPageToken;
|
||||
}
|
||||
pageToken = albumsResponse.nextPageToken;
|
||||
}
|
||||
}
|
||||
while (!string.IsNullOrEmpty(pageToken));
|
||||
|
|
Loading…
Reference in a new issue