mirror of
https://github.com/greenshot/greenshot
synced 2025-08-20 13:33:27 -07:00
Changes to the flickr plugin for this API change: https://code.flickr.net/2014/04/30/flickr-api-going-ssl-only-on-june-27th-2014/
This commit is contained in:
parent
77a92d98c3
commit
7f72e7a3d7
4 changed files with 76 additions and 57 deletions
|
@ -20,15 +20,14 @@
|
|||
*/
|
||||
using System.ComponentModel;
|
||||
using System.Drawing;
|
||||
using Greenshot.IniFile;
|
||||
using Greenshot.Plugin;
|
||||
using GreenshotPlugin.Core;
|
||||
using log4net;
|
||||
|
||||
namespace GreenshotFlickrPlugin {
|
||||
public class FlickrDestination : AbstractDestination {
|
||||
private static log4net.ILog LOG = log4net.LogManager.GetLogger(typeof(FlickrDestination));
|
||||
private static FlickrConfiguration config = IniConfig.GetIniSection<FlickrConfiguration>();
|
||||
private FlickrPlugin plugin = null;
|
||||
private static ILog LOG = LogManager.GetLogger(typeof(FlickrDestination));
|
||||
private FlickrPlugin plugin;
|
||||
public FlickrDestination(FlickrPlugin plugin) {
|
||||
this.plugin = plugin;
|
||||
}
|
||||
|
@ -53,8 +52,8 @@ namespace GreenshotFlickrPlugin {
|
|||
}
|
||||
|
||||
public override ExportInformation ExportCapture(bool manuallyInitiated, ISurface surface, ICaptureDetails captureDetails) {
|
||||
ExportInformation exportInformation = new ExportInformation(this.Designation, this.Description);
|
||||
string uploadURL = null;
|
||||
ExportInformation exportInformation = new ExportInformation(Designation, Description);
|
||||
string uploadURL;
|
||||
bool uploaded = plugin.Upload(captureDetails, surface, out uploadURL);
|
||||
if (uploaded) {
|
||||
exportInformation.ExportMade = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue