File size: 1,173 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
using System;
using System.Collections.Generic;
using System.Text;
using System.Collections.Specialized;
using System.Web;
using System.Threading;
using HtmlAgilityPack;

namespace MovieTube.Client.Scraper
{
    public class BayFiles : VideoScraperBase
    {
        protected override string OnScrape(string url, HtmlNode elem)
        {
            url = SelectItem(elem, ".highlighted-btn").Attributes["href"].Value;
            return url;
        }

        public override string RootUrl
        {
            get { return "http://bayfiles.net"; }
        }

        public override string ID
        {
            get { return ScrapperId.BayFiles ; }
        }

        public override string Title
        {
            get { return "BayFiles"; }
        }

        public override ScraperRank Rank
        {
            get
            {
                return ScraperRank.BayFiles;
            }
        }


        public override bool CanProcess(string url)
        {
            if (base.CanProcess(url))
                return true;
            return url.ToLower().Contains("bayfiles");
        }
    }
}