Skip to content

Commit

Permalink
add pic regex
Browse files Browse the repository at this point in the history
  • Loading branch information
yangyifu committed Jun 23, 2017
1 parent 211c67e commit b9f0fd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion BaiduComicHelperLibrary/DownloadHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public List<string> GetPicsUrls(string pageId, int pageNum, bool isLZ)
List<string> Result = new List<string>();
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)
{
Expand Down

0 comments on commit b9f0fd0

Please sign in to comment.