Merge pull request #529 from mikf/fix-523
[tumblr] avoid 'httpss' in image URLs
This commit is contained in:
commit
680ee68c05
@ -230,7 +230,7 @@ public class TumblrRipper extends AlbumRipper {
|
|||||||
urlString = urlString.replaceAll("_\\d+\\.", "_raw.");
|
urlString = urlString.replaceAll("_\\d+\\.", "_raw.");
|
||||||
fileURL = new URL(urlString);
|
fileURL = new URL(urlString);
|
||||||
} else {
|
} 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());
|
m = p.matcher(fileURL.toString());
|
||||||
if (m.matches()) {
|
if (m.matches()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user