Merge pull request #578 from cyian-1756/tsuminoChanges
TsuminoRipper no longer requires album name to download
This commit is contained in:
commit
ea100cedce
@ -59,11 +59,16 @@ public class TsuminoRipper extends AbstractHTMLRipper {
|
||||
|
||||
@Override
|
||||
public String getGID(URL url) throws MalformedURLException {
|
||||
Pattern p = Pattern.compile("https?://www.tsumino.com/Book/Info/([0-9]+)/([a-zA-Z0-9_-]*)");
|
||||
Pattern p = Pattern.compile("https?://www.tsumino.com/Book/Info/([0-9]+)/([a-zA-Z0-9_-]*)/?");
|
||||
Matcher m = p.matcher(url.toExternalForm());
|
||||
if (m.matches()) {
|
||||
return m.group(1) + "_" + m.group(2);
|
||||
}
|
||||
p = Pattern.compile("https?://www.tsumino.com/Book/Info/([0-9]+)/?");
|
||||
m = p.matcher(url.toExternalForm());
|
||||
if (m.matches()) {
|
||||
return m.group(1);
|
||||
}
|
||||
throw new MalformedURLException("Expected tsumino URL format: " +
|
||||
"tsumino.com/Book/Info/ID/TITLE - got " + url + " instead");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user