mirror of
https://github.com/ShareX/ShareX.git
synced 2024-07-02 21:20:28 +12:00
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:
parent
d443291085
commit
16f2f004e6
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue