C# Class MediaPortal.Video.Database.IMDBFetcher

Inheritance: IMDB.IProgress
Exibir arquivo Open project: MediaPortal/MediaPortal-1 Class Usage Examples

Public Methods

Method Description
CancelFetch ( ) : void
CancelFetchActor ( ) : void
CancelFetchActors ( ) : void
CancelFetchDetails ( ) : void
DownloadCoverArt ( string type, string imageUrl, string title ) : void
Fetch ( string movieName ) : bool
FetchActorDetails ( string actor, int actorId, int actorIndex ) : MediaPortal.Video.Database.IMDBActor
FetchActors ( ) : bool
FetchDetails ( int selectedMovie, IMDBMovie &currentMovie ) : bool
FetchDetails ( int selectedMovie, IMDBMovie &currentMovie, bool addToDatabase ) : bool
FetchMovieActor ( MediaPortal.Video.Database.IMDB progress, IMDBMovie details, string actor, int actorId ) : MediaPortal.Video.Database.IMDBActor

Downloads actor info. Movie details can be empty (it is used to help update role for movie if role is empty)

FetchMovieActors ( MediaPortal.Video.Database.IMDB progress, IMDBMovie details ) : bool
FetchNfo ( ArrayList nfoFiles, bool skipExisting, bool refreshdbOnly ) : void
FindActor ( string actor ) : MediaPortal.Video.Database.IMDB
FuzzyMatch ( string name ) : int
GetInfoFromIMDB ( MediaPortal.Video.Database.IMDB progress, IMDBMovie &movieDetails, bool isFuzzyMatching, bool getActors ) : bool
IMDBFetcher ( MediaPortal.Video.Database.IMDB progress ) : System
OnActorInfoStarting ( IMDBFetcher fetcher ) : bool
OnActorsEnd ( IMDBFetcher fetcher ) : bool
OnActorsStarted ( IMDBFetcher fetcher ) : bool
OnActorsStarting ( IMDBFetcher fetcher ) : bool
OnDetailsEnd ( IMDBFetcher fetcher ) : bool
OnDetailsNotFound ( IMDBFetcher fetcher ) : bool
OnDetailsStarted ( IMDBFetcher fetcher ) : bool
OnDetailsStarting ( IMDBFetcher fetcher ) : bool
OnDisableCancel ( IMDBFetcher fetcher ) : bool
OnMovieNotFound ( IMDBFetcher fetcher ) : bool
OnProgress ( string line1, string line2, string line3, int percent ) : void
OnRequestMovieTitle ( IMDBFetcher fetcher, string &movieName ) : bool
OnScanEnd ( ) : bool
OnScanIterated ( int count ) : bool
OnScanIterating ( int count ) : bool
OnScanStart ( int total ) : bool
OnSearchEnd ( IMDBFetcher fetcher ) : bool
OnSearchStarted ( IMDBFetcher fetcher ) : bool
OnSearchStarting ( IMDBFetcher fetcher ) : bool
OnSelectActor ( IMDBFetcher fetcher, int &selected ) : bool
OnSelectMovie ( IMDBFetcher fetcher, int &selected ) : bool
RefreshIMDB ( MediaPortal.Video.Database.IMDB progress, IMDBMovie &currentMovie, bool fuzzyMatching, bool getActors, bool addToDatabase ) : bool

Download IMDB info for a movie. For existing movie using IMDBid from database.

ScanIMDB ( MediaPortal.Video.Database.IMDB progress, ArrayList paths, bool fuzzyMatching, bool skipExisting, bool getActors, bool refreshDBonly ) : bool

Download IMDB info for all movies in a collection of paths

ScanIMDB ( MediaPortal.Video.Database.IMDB progress, string file, bool fuzzyMatching, bool skipExisting, bool getActors, bool refreshDBonly ) : bool

Download IMDB info for videofile (file must be with full path)

this ( int index ) : MediaPortal.Video.Database.IMDB.IMDBUrl

Private Methods

Method Description
FetchActorDetails ( ) : void
FetchActorDetailsThread ( ) : void
FetchActorsInMovie ( bool updateMovieInfo ) : void
FetchActorsThread ( ) : void
FetchDetailsThread ( ) : void
FetchNfoThread ( ) : void
FetchThread ( ) : void
FindActor ( ) : void
FindActorThread ( ) : void
MatchImdb ( string &strToMatch ) : bool
SearchForImdbId ( string path, string filename, bool dedicatedMovieFolders, string &searchString ) : void

Method Details

CancelFetch() public method

public CancelFetch ( ) : void
return void

CancelFetchActor() public method

public CancelFetchActor ( ) : void
return void

CancelFetchActors() public method

public CancelFetchActors ( ) : void
return void

CancelFetchDetails() public method

public CancelFetchDetails ( ) : void
return void

DownloadCoverArt() public static method

public static DownloadCoverArt ( string type, string imageUrl, string title ) : void
type string
imageUrl string
title string
return void

Fetch() public method

public Fetch ( string movieName ) : bool
movieName string
return bool

FetchActorDetails() public method

public FetchActorDetails ( string actor, int actorId, int actorIndex ) : MediaPortal.Video.Database.IMDBActor
actor string
actorId int
actorIndex int
return MediaPortal.Video.Database.IMDBActor

FetchActors() public method

public FetchActors ( ) : bool
return bool

FetchDetails() public method

public FetchDetails ( int selectedMovie, IMDBMovie &currentMovie ) : bool
selectedMovie int
currentMovie IMDBMovie
return bool

FetchDetails() public method

public FetchDetails ( int selectedMovie, IMDBMovie &currentMovie, bool addToDatabase ) : bool
selectedMovie int
currentMovie IMDBMovie
addToDatabase bool
return bool

FetchMovieActor() public static method

Downloads actor info. Movie details can be empty (it is used to help update role for movie if role is empty)
public static FetchMovieActor ( MediaPortal.Video.Database.IMDB progress, IMDBMovie details, string actor, int actorId ) : MediaPortal.Video.Database.IMDBActor
progress MediaPortal.Video.Database.IMDB
details IMDBMovie
actor string
actorId int
return MediaPortal.Video.Database.IMDBActor

FetchMovieActors() public static method

public static FetchMovieActors ( MediaPortal.Video.Database.IMDB progress, IMDBMovie details ) : bool
progress MediaPortal.Video.Database.IMDB
details IMDBMovie
return bool

FetchNfo() public method

public FetchNfo ( ArrayList nfoFiles, bool skipExisting, bool refreshdbOnly ) : void
nfoFiles System.Collections.ArrayList
skipExisting bool
refreshdbOnly bool
return void

FindActor() public method

public FindActor ( string actor ) : MediaPortal.Video.Database.IMDB
actor string
return MediaPortal.Video.Database.IMDB

FuzzyMatch() public method

public FuzzyMatch ( string name ) : int
name string
return int

GetInfoFromIMDB() public static method

public static GetInfoFromIMDB ( MediaPortal.Video.Database.IMDB progress, IMDBMovie &movieDetails, bool isFuzzyMatching, bool getActors ) : bool
progress MediaPortal.Video.Database.IMDB
movieDetails IMDBMovie
isFuzzyMatching bool
getActors bool
return bool

IMDBFetcher() public method

public IMDBFetcher ( MediaPortal.Video.Database.IMDB progress ) : System
progress MediaPortal.Video.Database.IMDB
return System

OnActorInfoStarting() public method

public OnActorInfoStarting ( IMDBFetcher fetcher ) : bool
fetcher IMDBFetcher
return bool

OnActorsEnd() public method

public OnActorsEnd ( IMDBFetcher fetcher ) : bool
fetcher IMDBFetcher
return bool

OnActorsStarted() public method

public OnActorsStarted ( IMDBFetcher fetcher ) : bool
fetcher IMDBFetcher
return bool

OnActorsStarting() public method

public OnActorsStarting ( IMDBFetcher fetcher ) : bool
fetcher IMDBFetcher
return bool

OnDetailsEnd() public method

public OnDetailsEnd ( IMDBFetcher fetcher ) : bool
fetcher IMDBFetcher
return bool

OnDetailsNotFound() public method

public OnDetailsNotFound ( IMDBFetcher fetcher ) : bool
fetcher IMDBFetcher
return bool

OnDetailsStarted() public method

public OnDetailsStarted ( IMDBFetcher fetcher ) : bool
fetcher IMDBFetcher
return bool

OnDetailsStarting() public method

public OnDetailsStarting ( IMDBFetcher fetcher ) : bool
fetcher IMDBFetcher
return bool

OnDisableCancel() public method

public OnDisableCancel ( IMDBFetcher fetcher ) : bool
fetcher IMDBFetcher
return bool

OnMovieNotFound() public method

public OnMovieNotFound ( IMDBFetcher fetcher ) : bool
fetcher IMDBFetcher
return bool

OnProgress() public method

public OnProgress ( string line1, string line2, string line3, int percent ) : void
line1 string
line2 string
line3 string
percent int
return void

OnRequestMovieTitle() public method

public OnRequestMovieTitle ( IMDBFetcher fetcher, string &movieName ) : bool
fetcher IMDBFetcher
movieName string
return bool

OnScanEnd() public method

public OnScanEnd ( ) : bool
return bool

OnScanIterated() public method

public OnScanIterated ( int count ) : bool
count int
return bool

OnScanIterating() public method

public OnScanIterating ( int count ) : bool
count int
return bool

OnScanStart() public method

public OnScanStart ( int total ) : bool
total int
return bool

OnSearchEnd() public method

public OnSearchEnd ( IMDBFetcher fetcher ) : bool
fetcher IMDBFetcher
return bool

OnSearchStarted() public method

public OnSearchStarted ( IMDBFetcher fetcher ) : bool
fetcher IMDBFetcher
return bool

OnSearchStarting() public method

public OnSearchStarting ( IMDBFetcher fetcher ) : bool
fetcher IMDBFetcher
return bool

OnSelectActor() public method

public OnSelectActor ( IMDBFetcher fetcher, int &selected ) : bool
fetcher IMDBFetcher
selected int
return bool

OnSelectMovie() public method

public OnSelectMovie ( IMDBFetcher fetcher, int &selected ) : bool
fetcher IMDBFetcher
selected int
return bool

RefreshIMDB() public static method

Download IMDB info for a movie. For existing movie using IMDBid from database.
public static RefreshIMDB ( MediaPortal.Video.Database.IMDB progress, IMDBMovie &currentMovie, bool fuzzyMatching, bool getActors, bool addToDatabase ) : bool
progress MediaPortal.Video.Database.IMDB
currentMovie IMDBMovie
fuzzyMatching bool
getActors bool
addToDatabase bool
return bool

ScanIMDB() public static method

Download IMDB info for all movies in a collection of paths
public static ScanIMDB ( MediaPortal.Video.Database.IMDB progress, ArrayList paths, bool fuzzyMatching, bool skipExisting, bool getActors, bool refreshDBonly ) : bool
progress MediaPortal.Video.Database.IMDB
paths System.Collections.ArrayList
fuzzyMatching bool
skipExisting bool
getActors bool
refreshDBonly bool
return bool

ScanIMDB() public static method

Download IMDB info for videofile (file must be with full path)
public static ScanIMDB ( MediaPortal.Video.Database.IMDB progress, string file, bool fuzzyMatching, bool skipExisting, bool getActors, bool refreshDBonly ) : bool
progress MediaPortal.Video.Database.IMDB
file string
fuzzyMatching bool
skipExisting bool
getActors bool
refreshDBonly bool
return bool

this() public method

public this ( int index ) : MediaPortal.Video.Database.IMDB.IMDBUrl
index int
return MediaPortal.Video.Database.IMDB.IMDBUrl