/// <summary> /// 解析网页中的相关信息 /// </summary> private void ParseHtmlResources(string html) { List <MovieInfo> infos = new List <MovieInfo>(); lock (_lock)//并发锁机制控制解析 { string titlepattern = @"<title>(.*?)</title>"; string ftppattern = @"<a href='(ftp.*?)'"; infos = ParseHtml.getInfo(titlepattern, ftppattern, html); } if (ContentSave != null) { ContentSave(infos); } }
/// <summary> /// 通过搜索界面获取链接 /// </summary> /// <param name="html"></param> /// <returns></returns> private string[] GetLinks(string html) { string[] Links = ParseHtml.getLinks(html); return(Links); }