Fixed Google Photos album names not appearing

Also forces the request to use the latest version of the API, just
cause. The album name is now taken from the actual title metadata.
This commit is contained in:
Andrei Sângeorzan 2017-04-05 22:29:02 +03:00
parent d443291085
commit 16f2f004e6

View file

@ -137,6 +137,7 @@ private NameValueCollection GetAuthHeaders()
{
NameValueCollection headers = new NameValueCollection();
headers.Add("Authorization", "Bearer " + AuthInfo.Token.access_token);
headers.Add("GData-Version", "3");
return headers;
}
@ -177,7 +178,7 @@ public List<PicasaAlbumInfo> GetAlbumList()
{
PicasaAlbumInfo album = new PicasaAlbumInfo();
album.ID = entry.GetElementValue(GPhotoNS + "id");
album.Name = entry.GetElementValue(GPhotoNS + "name");
album.Name = entry.GetElementValue(AtomNS + "title");
album.Summary = entry.GetElementValue(AtomNS + "summary");
albumList.Add(album);
}