Merge pull request #789 from Leftopia/master
Temporary fix for Picasa web requests
This commit is contained in:
commit
cf8bd99017
|
@ -460,7 +460,8 @@ namespace OpenLiveWriter.BlogClient.Clients
|
|||
const string GPHOTO_NS_URI = "http://schemas.google.com/photos/2007";
|
||||
|
||||
//TransientCredentials transientCredentials = Credentials.TransientCredentials as TransientCredentials;
|
||||
Uri picasaUri = new Uri("http://picasaweb.google.com/data/feed/api/user/default");
|
||||
// TODO: HACK: The deprecation-extension flag keeps the deprecated Picasa API alive.
|
||||
Uri picasaUri = new Uri("https://picasaweb.google.com/data/feed/api/user/default?deprecation-extension=true");
|
||||
|
||||
try
|
||||
{
|
||||
|
|
|
@ -731,9 +731,9 @@ namespace OpenLiveWriter.BlogClient.Clients
|
|||
public string GetBlogImagesAlbum(string albumName, string blogId)
|
||||
{
|
||||
const string FEED_REL = "http://schemas.google.com/g/2005#feed";
|
||||
|
||||
Uri picasaUri = new Uri("https://picasaweb.google.com/data/feed/api/user/default");
|
||||
|
||||
// TODO: HACK: The deprecation-extension flag keeps the deprecated Picasa API alive.
|
||||
Uri picasaUri = new Uri("https://picasaweb.google.com/data/feed/api/user/default?deprecation-extension=true");
|
||||
var picasaId = string.Empty;
|
||||
|
||||
try
|
||||
|
@ -767,7 +767,11 @@ namespace OpenLiveWriter.BlogClient.Clients
|
|||
}
|
||||
string selfHref = AtomEntry.GetLink(entryEl, _nsMgr, FEED_REL, "application/atom+xml", null, reqUri);
|
||||
if (selfHref.Length > 1)
|
||||
{
|
||||
// TODO: HACK: This keeps the deprecated Picasa API alive.
|
||||
selfHref += "&deprecation-extension=true";
|
||||
return selfHref;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -835,7 +839,8 @@ namespace OpenLiveWriter.BlogClient.Clients
|
|||
// for us to use.
|
||||
if (userInfo.BlogUserInfoValue.PhotosAlbumKey != "0")
|
||||
{
|
||||
var bloggerPicasaUrl = $"https://picasaweb.google.com/data/feed/api/user/{picasaId}/albumid/{userInfo.BlogUserInfoValue.PhotosAlbumKey}";
|
||||
// TODO: HACK: The deprecation-extension flag keeps the deprecated Picasa API alive.
|
||||
var bloggerPicasaUrl = $"https://picasaweb.google.com/data/feed/api/user/{picasaId}/albumid/{userInfo.BlogUserInfoValue.PhotosAlbumKey}?deprecation-extension=true";
|
||||
return bloggerPicasaUrl;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue