mirror of
https://github.com/RipMeApp/ripme.git
synced 2025-08-29 00:29:55 +02:00
Merge pull request #1064 from PwnicornDev/patch-1
Update userRegex, fixes #1063
This commit is contained in:
@@ -129,7 +129,7 @@ public class FlickrRipper extends AbstractHTMLRipper {
|
|||||||
// Album: https://www.flickr.com/photos/115858035@N04/sets/72157644042355643/
|
// Album: https://www.flickr.com/photos/115858035@N04/sets/72157644042355643/
|
||||||
|
|
||||||
final String domainRegex = "https?://[wm.]*flickr.com";
|
final String domainRegex = "https?://[wm.]*flickr.com";
|
||||||
final String userRegex = "[a-zA-Z0-9@]+";
|
final String userRegex = "[a-zA-Z0-9@_-]+";
|
||||||
// Album
|
// Album
|
||||||
p = Pattern.compile("^" + domainRegex + "/photos/(" + userRegex + ")/(sets|albums)/([0-9]+)/?.*$");
|
p = Pattern.compile("^" + domainRegex + "/photos/(" + userRegex + ")/(sets|albums)/([0-9]+)/?.*$");
|
||||||
m = p.matcher(url);
|
m = p.matcher(url);
|
||||||
@@ -168,7 +168,7 @@ public class FlickrRipper extends AbstractHTMLRipper {
|
|||||||
// Album: https://www.flickr.com/photos/115858035@N04/sets/72157644042355643/
|
// Album: https://www.flickr.com/photos/115858035@N04/sets/72157644042355643/
|
||||||
|
|
||||||
final String domainRegex = "https?://[wm.]*flickr.com";
|
final String domainRegex = "https?://[wm.]*flickr.com";
|
||||||
final String userRegex = "[a-zA-Z0-9@]+";
|
final String userRegex = "[a-zA-Z0-9@_-]+";
|
||||||
// Album
|
// Album
|
||||||
p = Pattern.compile("^" + domainRegex + "/photos/(" + userRegex + ")/sets/([0-9]+)/?.*$");
|
p = Pattern.compile("^" + domainRegex + "/photos/(" + userRegex + ")/sets/([0-9]+)/?.*$");
|
||||||
m = p.matcher(url.toExternalForm());
|
m = p.matcher(url.toExternalForm());
|
||||||
|
Reference in New Issue
Block a user