SinnercomicsRipper no longer adds -page-01 to folder names

This commit is contained in:
cyian-1756 2018-05-13 10:11:38 -04:00
parent 34425361ae
commit 046fa093a3

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");