C# Class OnlineVideos.Sites.JSurf.AmazonPrimeSiteUtil

General Util class for web automation - that is where we load the information by scraping the website and play via a browser
Inheritance: SiteUtilBase, IBrowserVersionEmulation, IInputStreamSite
ファイルを表示 Open project: offbyoneBB/mp-onlinevideos2

Public Methods

Method Description
DiscoverDynamicCategories ( ) : int

Override the loading of main categories

DiscoverNextPageCategories ( NextPageCategory nextPagecategory ) : int

Get the next page of categories

DiscoverSubCategories ( Category parentCategory ) : int

Override the loading of sub categories

GetMultipleVideoUrls ( System.VideoInfo video, bool inPlaylist = false ) : List
GetStreamProperties ( System.VideoInfo videoInfo, string>.Dictionary &properties ) : bool
GetVideos ( Category category ) : List

Load the list of videos - see if they've been pre-loaded when populating categories or not

Initialize ( SiteSettings siteSettings ) : void

Set the Web Automation Description from the enum

Search ( string query, string category = null ) : List

Private Methods

Method Description
BuildCategories ( Category parentCategory, IList categoriesToPopulate ) : void

Build the specified category list

BuildVideos ( IList videosToPopulate, Category parentCategory ) : void

Build the video list for the specified category

GetCategorySortField ( Category categ ) : string

Get the sort field for the category

Method Details

DiscoverDynamicCategories() public method

Override the loading of main categories
public DiscoverDynamicCategories ( ) : int
return int

DiscoverNextPageCategories() public method

Get the next page of categories
public DiscoverNextPageCategories ( NextPageCategory nextPagecategory ) : int
nextPagecategory NextPageCategory
return int

DiscoverSubCategories() public method

Override the loading of sub categories
public DiscoverSubCategories ( Category parentCategory ) : int
parentCategory Category
return int

GetMultipleVideoUrls() public method

public GetMultipleVideoUrls ( System.VideoInfo video, bool inPlaylist = false ) : List
video System.VideoInfo
inPlaylist bool
return List

GetStreamProperties() public method

public GetStreamProperties ( System.VideoInfo videoInfo, string>.Dictionary &properties ) : bool
videoInfo System.VideoInfo
properties string>.Dictionary
return bool

GetVideos() public method

Load the list of videos - see if they've been pre-loaded when populating categories or not
public GetVideos ( Category category ) : List
category Category
return List

Initialize() public method

Set the Web Automation Description from the enum
public Initialize ( SiteSettings siteSettings ) : void
siteSettings SiteSettings
return void

Search() public method

public Search ( string query, string category = null ) : List
query string
category string
return List