1
0
mirror of https://github.com/RipMeApp/ripme.git synced 2025-07-31 02:50:15 +02:00

[tumblr] avoid 'httpss' in image URLs

fixes #523

replacing 'http' with 'https' in an URL already starting with
'https://...' changes its scheme/protocol to 'httpss'
This commit is contained in:
Mike Fährmann
2018-04-19 15:14:24 +02:00
parent 1bc696504a
commit 034225cf1c

View File

@@ -230,7 +230,7 @@ public class TumblrRipper extends AlbumRipper {
urlString = urlString.replaceAll("_\\d+\\.", "_raw.");
fileURL = new URL(urlString);
} else {
fileURL = new URL(photo.getJSONObject("original_size").getString("url").replaceAll("http", "https"));
fileURL = new URL(photo.getJSONObject("original_size").getString("url").replaceAll("http:", "https:"));
}
m = p.matcher(fileURL.toString());
if (m.matches()) {