Merge pull request #587 from cyian-1756/sinnerComicFix

SinnercomicsRipper no longer adds -page-01 to folder names
This commit is contained in:
cyian-1756 2018-05-16 11:47:53 -04:00 committed by GitHub
commit 2fe0f0163e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -34,7 +34,7 @@ public class SinnercomicsRipper extends AbstractHTMLRipper {
Pattern p = Pattern.compile("^https?://sinnercomics.com/comic/([a-zA-Z0-9-]*)/?$"); Pattern p = Pattern.compile("^https?://sinnercomics.com/comic/([a-zA-Z0-9-]*)/?$");
Matcher m = p.matcher(url.toExternalForm()); Matcher m = p.matcher(url.toExternalForm());
if (m.matches()) { if (m.matches()) {
return m.group(1); return m.group(1).replaceAll("-page-\\d+", "");
} }
throw new MalformedURLException("Expected sinnercomics.com URL format: " + throw new MalformedURLException("Expected sinnercomics.com URL format: " +
"sinnercomics.com/comic/albumName - got " + url + " instead"); "sinnercomics.com/comic/albumName - got " + url + " instead");