ReadAllComics:

-fixed invalid escaped sequence

git-svn-id: svn://svn.jdownloader.org/jdownloader/trunk@49736 ebf7c1c2-ba36-0410-9fe8-c592906822b4

Former-commit-id: 85f863870edc4c1381badd02ba49ce15675b0392
This commit is contained in:
jiaz 2024-09-06 16:39:41 +00:00
parent a79a26b4f0
commit 589a9857e9

View File

@ -18,10 +18,6 @@ package jd.plugins.decrypter;
import java.util.ArrayList;
import java.util.Locale;
import org.appwork.utils.Regex;
import org.appwork.utils.StringUtils;
import org.jdownloader.plugins.components.antiDDoSForDecrypt;
import jd.PluginWrapper;
import jd.controlling.ProgressController;
import jd.nutils.encoding.Encoding;
@ -33,6 +29,10 @@ import jd.plugins.LinkStatus;
import jd.plugins.PluginException;
import jd.plugins.hoster.DirectHTTP;
import org.appwork.utils.Regex;
import org.appwork.utils.StringUtils;
import org.jdownloader.plugins.components.antiDDoSForDecrypt;
@DecrypterPlugin(revision = "$Revision$", interfaceVersion = 2, names = { "readallcomics.com" }, urls = { "https?://(?:www\\.)?readallcomics\\.com/(?:category/)?[^/]+/?" })
public class ReadAllComics extends antiDDoSForDecrypt {
public ReadAllComics(PluginWrapper wrapper) {
@ -75,7 +75,7 @@ public class ReadAllComics extends antiDDoSForDecrypt {
String[] images = br.getRegex("<img[^<]*src=\"(https?://[^\"]+\\d{2,}\\.jpg)").getColumn(0);
if (images == null || images.length == 0) {
/* 2nd type */
images = br.getRegex("src=\"(https?://[^\"]+)\"\s*alt=\"[^\"]* Page \\d+\"").getColumn(0);
images = br.getRegex("src=\"(https?://[^\"]+)\"\\s*alt=\"[^\"]* Page \\d+\"").getColumn(0);
if (images == null || images.length == 0) {
/* 3rd type / wider attempt */
images = br.getRegex("<img[^<]*src=\"(https?://[^\"]+)").getColumn(0);