Skip to content

Commit 4224add

Browse files
committed
Added support for latest Flickr API, release v1.2
1 parent 0636442 commit 4224add

File tree

7 files changed

+12
-10
lines changed

7 files changed

+12
-10
lines changed

CHANGELOG

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Version 1.2
2-
- ...
2+
- Support for latest Flickr API
33

44
Version 1.1.1
55
- File names comply with flickr guidelines

EasyFlickrBackup.jar

-1.81 MB
Binary file not shown.

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
# EasyFlickrBackup
22
Easy to use application to download and backup all your photos in original size from flickr.
33

4-
* Current version: 1.1.1
4+
* Current version: 1.2
55
* License: MIT License
66

77
![Screenshot](https://c2.staticflickr.com/2/1701/25533200184_1d88bdfa68_o.png)
88

99
## System requirements
1010
* Operating system: Windows, Linux, Mac OS X
11-
* Software: Java Runtime Environment >= 7.0 ([Download](https://www.java.com/download/))
11+
* Software: Java Runtime Environment >= 8.0 ([Download](https://www.java.com/download/))
1212

1313
## Download & Installation
1414

pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<dependency>
1717
<groupId>com.flickr4java</groupId>
1818
<artifactId>flickr4java</artifactId>
19-
<version>2.16</version>
19+
<version>3.0.2</version>
2020
</dependency>
2121
</dependencies>
2222
<build>

src/main/java/de/lutana/easyflickrbackup/AboutDlg.form

+2-1
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,8 @@
135135
<Property name="editable" type="boolean" value="false"/>
136136
<Property name="columns" type="int" value="20"/>
137137
<Property name="rows" type="int" value="5"/>
138-
<Property name="text" type="java.lang.String" value="Version 1.2&#xa;- ...&#xa;&#xa;Version 1.1.1&#xa;- File names comply with flickr guidelines&#xa;&#xa;Version 1.1&#xa;- Download process about 10 times faster&#xa;- Pause &amp; Resume the download process at any time&#xa;- Store files in a separate directory per user&#xa;&#xa;Version 1.0&#xa;- Initial release"/>
138+
<Property name="text" type="java.lang.String" value="Version 1.2&#xa;- Support for latest Flickr API&#xa;&#xa;Version 1.1.1&#xa;- File names comply with flickr guidelines&#xa;&#xa;Version 1.1&#xa;- Download process about 10 times faster&#xa;- Pause &amp; Resume the download process at any time&#xa;- Store files in a separate directory per user&#xa;&#xa;Version 1.0&#xa;- Initial release"/>
139+
<Property name="caretPosition" type="int" value="0"/>
139140
</Properties>
140141
</Component>
141142
</SubComponents>

src/main/java/de/lutana/easyflickrbackup/AboutDlg.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,8 @@ public void mouseClicked(java.awt.event.MouseEvent evt) {
8282
jTextArea1.setEditable(false);
8383
jTextArea1.setColumns(20);
8484
jTextArea1.setRows(5);
85-
jTextArea1.setText("Version 1.2\n- ...\n\nVersion 1.1.1\n- File names comply with flickr guidelines\n\nVersion 1.1\n- Download process about 10 times faster\n- Pause & Resume the download process at any time\n- Store files in a separate directory per user\n\nVersion 1.0\n- Initial release");
85+
jTextArea1.setText("Version 1.2\n- Support for latest Flickr API\n\nVersion 1.1.1\n- File names comply with flickr guidelines\n\nVersion 1.1\n- Download process about 10 times faster\n- Pause & Resume the download process at any time\n- Store files in a separate directory per user\n\nVersion 1.0\n- Initial release");
86+
jTextArea1.setCaretPosition(0);
8687
jScrollPane1.setViewportView(jTextArea1);
8788

8889
jLabel7.setText("License:");

src/main/java/de/lutana/easyflickrbackup/GUI.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@
3737
import com.flickr4java.flickr.photos.PhotosInterface;
3838
import com.flickr4java.flickr.photos.Size;
3939
import com.flickr4java.flickr.util.FileAuthStore;
40+
import com.github.scribejava.core.model.OAuth1RequestToken;
41+
import com.github.scribejava.core.model.OAuth1Token;
4042
import java.awt.Desktop;
4143
import java.awt.Dimension;
4244
import java.awt.Toolkit;
@@ -50,8 +52,6 @@
5052
import java.util.Set;
5153
import javax.swing.JFileChooser;
5254
import javax.swing.JOptionPane;
53-
import org.scribe.model.Token;
54-
import org.scribe.model.Verifier;
5555

5656
public class GUI extends javax.swing.JFrame implements Runnable {
5757

@@ -359,7 +359,7 @@ public File getBackupDirectory() {
359359

360360
private void authBtnActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_authBtnActionPerformed
361361
AuthInterface authInterface = flickr.getAuthInterface();
362-
Token accessToken = authInterface.getRequestToken();
362+
OAuth1RequestToken accessToken = authInterface.getRequestToken();
363363

364364
JOptionPane.showMessageDialog(this, "You are redirected to the Flickr authentication process now.\r\nAfterwards you need to enter the authentication token here.");
365365
String urlString = authInterface.getAuthorizationUrl(accessToken, Permission.READ);
@@ -373,7 +373,7 @@ private void authBtnActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST
373373
return;
374374
}
375375
try {
376-
Token requestToken = authInterface.getAccessToken(accessToken, new Verifier(tokenKey));
376+
OAuth1Token requestToken = authInterface.getAccessToken(accessToken, tokenKey);
377377
Auth auth = authInterface.checkToken(requestToken);
378378
StringContainer.Auth ac = new StringContainer.Auth(auth);
379379
userBox.addItem(ac);

0 commit comments

Comments
 (0)