Skip to content

Commit 25cf33f

Browse files
committed
FlickrRipper: set total items
1 parent 65c1122 commit 25cf33f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/java/com/rarchives/ripme/ripper/rippers/FlickrRipper.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,8 @@ public List<String> getURLsFromPage(Document doc) {
261261
}
262262

263263
int totalPages = rootData.getInt("pages");
264+
int totalFiles = rootData.getInt("total");
265+
setItemsTotal(totalFiles);
264266
logger.info(jsonData);
265267
JSONArray pictures = rootData.getJSONArray("photo");
266268
for (int i = 0; i < pictures.length(); i++) {

0 commit comments

Comments
 (0)