public override void retrieveTvStreamLinks(TvSerie serie) { try { var target = serie.getSeriePageLink(); var handler = new ClearanceHandler("http://*****:*****@id=\"sequex-main-inner\"]/div[1]/article/div[1]/table[1]/tbody/tr/td/div/div[2]"); if (node == null) { return; } foreach (var parent in node) { foreach (var toAnalyze in parent.ChildNodes) { if (toAnalyze.InnerHtml.ToLower().Contains("stayonline")) { string episode = WebUtility.HtmlDecode(toAnalyze.ChildNodes.FirstOrDefault().InnerText).Replace(" -", ""); Dictionary <string, string> links = new Dictionary <string, string>(); for (int i = 1; i < toAnalyze.ChildNodes.Count; i++) { if (!toAnalyze.ChildNodes[i].Name.ToLower().Contains("text")) { //It need to be redone try { string provider = toAnalyze.ChildNodes[i].InnerText; string link = toAnalyze.ChildNodes[i].Attributes[0].Value; links.Add(provider, link); } catch { } } } serie.addLink(episode, links); } } } } catch (Exception ex) { Console.WriteLine(ex.InnerException.Message); } }
public override void retrieveTvStreamLinks(TvSerie serie) { var handler = new ClearanceHandler("http://*****:*****@id=\"infoSerie\"]/div/div/div[2]/div/div[2]/p[2]"); serie.SerieDescription = WebUtility.HtmlDecode(nodeDescription.InnerText); var nodeSelected = htmlDoc.DocumentNode.SelectSingleNode("//*[@id=\"iframeVid\"]"); Dictionary <string, string> tmp = new Dictionary <string, string>(); tmp.Add("MainPanel", nodeSelected.Attributes[3].Value); serie.addLink("All Episodes", tmp); return; } catch { } }