@@ -0,0 +1,2057 @@
+package com.rarchives.ripme.ripper.rippers;%0A%0Aimport java.io.IOException;%0Aimport java.net.MalformedURLException;%0Aimport java.net.URL;%0Aimport java.util.ArrayList;%0Aimport java.util.List;%0Aimport java.util.regex.Matcher;%0Aimport java.util.regex.Pattern;%0A%0Aimport org.jsoup.nodes.Document;%0Aimport org.jsoup.nodes.Element;%0A%0Aimport com.rarchives.ripme.ripper.AbstractHTMLRipper;%0Aimport com.rarchives.ripme.utils.Http;%0A%0Apublic class RajceRipper extends AbstractHTMLRipper %7B%0A%0A    private static final String DOMAIN = %22rajce.idnes.cz%22;%0A    private static final String HOST = %22rajce.idnes%22;%0A%0A    public RajceRipper(URL url) throws IOException %7B%0A        super(url);%0A    %7D%0A%0A    @Override%0A    public String getHost() %7B%0A        return HOST;%0A    %7D%0A%0A    @Override%0A    public String getDomain() %7B%0A        return DOMAIN;%0A    %7D%0A%0A    @Override%0A    public String getGID(URL url) throws MalformedURLException %7B%0A        Pattern p = Pattern.compile(%22%5Ehttps?://(%5B%5E.%5D+)%5C%5C.rajce%5C%5C.idnes%5C%5C.cz/((%5B%5E/%5D+)/.*)?$%22);%0A        Matcher m = p.matcher(url.toExternalForm());%0A%0A        if (!m.matches()) %7B%0A            throw new MalformedURLException(%22Unsupported URL format: %22 + url.toExternalForm());%0A        %7D%0A%0A        String user = m.group(1);%0A        String album = m.group(3);%0A%0A        if (album == null) %7B%0A            throw new MalformedURLException(%22Unsupported URL format (not an album): %22 + url.toExternalForm());%0A        %7D%0A%0A        return user + %22/%22 + album;%0A    %7D%0A%0A    @Override%0A    public Document getFirstPage() throws IOException %7B%0A        return Http.url(url).get();%0A    %7D%0A%0A    @Override%0A    public Document getNextPage(Document doc) throws IOException %7B%0A        return super.getNextPage(doc);%0A    %7D%0A%0A    @Override%0A    public List%3CString%3E getURLsFromPage(Document page) %7B%0A        List%3CString%3E result = new ArrayList%3CString%3E();%0A        for (Element el : page.select(%22a.photoThumb%22)) %7B%0A            result.add(el.attr(%22href%22));%0A        %7D%0A        return result;%0A    %7D%0A%0A    @Override%0A    public void downloadURL(URL url, int index) %7B%0A        addURLToDownload(url, getPrefix(index));%0A    %7D%0A%0A%7D%0A

Add Rajce Ripper