mirror of
https://github.com/greenshot/greenshot
synced 2025-07-16 10:03:44 -07:00
SUPPORT-155: Generating URL to "original" size/file
This commit is contained in:
parent
e98452e268
commit
027a4ad8db
1 changed files with 3 additions and 2 deletions
|
@ -42,7 +42,7 @@ namespace GreenshotFlickrPlugin {
|
|||
private const string FLICKR_ACCESS_TOKEN_URL = FLICKR_OAUTH_BASE_URL + "access_token";
|
||||
private const string FLICKR_AUTHORIZE_URL = FLICKR_OAUTH_BASE_URL + "authorize";
|
||||
private const string FLICKR_REQUEST_TOKEN_URL = FLICKR_OAUTH_BASE_URL + "request_token";
|
||||
private const string FLICKR_FARM_URL = "https://farm{0}.staticflickr.com/{1}/{2}_{3}.jpg";
|
||||
private const string FLICKR_FARM_URL = "https://farm{0}.staticflickr.com/{1}/{2}_{3}_o.{4}";
|
||||
// REST
|
||||
private const string FLICKR_REST_URL = FLICKR_API_BASE_URL + "rest/";
|
||||
private const string FLICKR_GET_INFO_URL = FLICKR_REST_URL + "?method=flickr.photos.getInfo";
|
||||
|
@ -132,7 +132,8 @@ namespace GreenshotFlickrPlugin {
|
|||
string serverId = item.Attributes["server"].Value;
|
||||
string photoId = item.Attributes["id"].Value;
|
||||
string secret = item.Attributes["secret"].Value;
|
||||
return string.Format(FLICKR_FARM_URL, farmId, serverId, photoId, secret);
|
||||
string originalFormat = item.Attributes["originalformat"].Value;
|
||||
return string.Format(FLICKR_FARM_URL, farmId, serverId, photoId, secret, originalFormat);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue