File size: 1,446 Bytes
e26fba6 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 | using System;
using System.Collections.Generic;
using System.Text;
using System.Collections.Specialized;
using System.Xml;
using System.Web;
using HtmlAgilityPack;
namespace MovieTube.Client.Scraper
{
public class Einthusan : VideoScraperBase
{
protected override string OnScrape(string url, HtmlNode elem)
{
var start = elem.InnerText.IndexOf("'file': '") + 9;
var end = elem.InnerText.IndexOf("'", start + 1);
url = elem.InnerText.Substring(start, end - start);
return url;
}
public override string RootUrl
{
get { return "http://www.einthusan.com"; }
}
public override string ID
{
get { return ScrapperId.Einthusan; }
}
public override string Title
{
get { return "Einthusan"; }
}
public override bool IsWebSupported
{
get
{
return false;
}
}
public override ScraperRank Rank
{
get
{
return ScraperRank.Einthusan;
}
}
public override string GetFlashUrl(string url)
{
return String.Format("http://www.einthusan.com/movies/watch.php?id={0}",
SubstringBetween(url, "id="));
}
}
}
|