From b9f0fd05bcb9867eddaa88df6e1def8088ccdfd3 Mon Sep 17 00:00:00 2001 From: yangyifu Date: Fri, 23 Jun 2017 13:46:04 +0800 Subject: [PATCH] add pic regex --- BaiduComicHelperLibrary/DownloadHelper.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BaiduComicHelperLibrary/DownloadHelper.cs b/BaiduComicHelperLibrary/DownloadHelper.cs index 4cfaccc..6d852c0 100644 --- a/BaiduComicHelperLibrary/DownloadHelper.cs +++ b/BaiduComicHelperLibrary/DownloadHelper.cs @@ -85,7 +85,7 @@ public List GetPicsUrls(string pageId, int pageNum, bool isLZ) List Result = new List(); string url = BuildUrl(pageId, pageNum, isLZ); var htmlTxt = GetPages(url); - string regex = "http://hiphotos\\.baidu\\.com/[^/]+/pic/item/[^\\.]+\\.jpg|http://imgsrc\\.baidu\\.com/forum/w%3D580/sign=[^/]+/[^\\.]+\\.jpg"; + string regex = "http://hiphotos\\.baidu\\.com/[^/]+/pic/item/[^\\.]+\\.jpg|http://imgsrc\\.baidu\\.com/forum/w%3D580/sign=[^/]+/[^\\.]+\\.jpg|https://imgsa.baidu.com/kf3700/pic/item/\\w+.jpg"; var matches = Regex.Matches(htmlTxt, regex); foreach (Match match in matches) {