C# Класс MediaPortal.Video.Database.IMDBFetcher

Наследование: IMDB.IProgress
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

CancelFetch() публичный Метод

public CancelFetch ( ) : void
Результат void

CancelFetchActor() публичный Метод

public CancelFetchActor ( ) : void
Результат void

CancelFetchActors() публичный Метод

public CancelFetchActors ( ) : void
Результат void

CancelFetchDetails() публичный Метод

public CancelFetchDetails ( ) : void
Результат void

DownloadCoverArt() публичный статический Метод

public static DownloadCoverArt ( string type, string imageUrl, string title ) : void
type string
imageUrl string
title string
Результат void

Fetch() публичный Метод

public Fetch ( string movieName ) : bool
movieName string
Результат bool

FetchActorDetails() публичный Метод

public FetchActorDetails ( string actor, int actorId, int actorIndex ) : MediaPortal.Video.Database.IMDBActor
actor string
actorId int
actorIndex int
Результат MediaPortal.Video.Database.IMDBActor

FetchActors() публичный Метод

public FetchActors ( ) : bool
Результат bool

FetchDetails() публичный Метод

public FetchDetails ( int selectedMovie, IMDBMovie &currentMovie ) : bool
selectedMovie int
currentMovie IMDBMovie
Результат bool

FetchDetails() публичный Метод

public FetchDetails ( int selectedMovie, IMDBMovie &currentMovie, bool addToDatabase ) : bool
selectedMovie int
currentMovie IMDBMovie
addToDatabase bool
Результат bool

FetchMovieActor() публичный статический Метод

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
Результат MediaPortal.Video.Database.IMDBActor

FetchMovieActors() публичный статический Метод

public static FetchMovieActors ( MediaPortal.Video.Database.IMDB progress, IMDBMovie details ) : bool
progress MediaPortal.Video.Database.IMDB
details IMDBMovie
Результат bool

FetchNfo() публичный Метод

public FetchNfo ( ArrayList nfoFiles, bool skipExisting, bool refreshdbOnly ) : void
nfoFiles System.Collections.ArrayList
skipExisting bool
refreshdbOnly bool
Результат void

FindActor() публичный Метод

public FindActor ( string actor ) : MediaPortal.Video.Database.IMDB
actor string
Результат MediaPortal.Video.Database.IMDB

FuzzyMatch() публичный Метод

public FuzzyMatch ( string name ) : int
name string
Результат int

GetInfoFromIMDB() публичный статический Метод

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
Результат bool

IMDBFetcher() публичный Метод

public IMDBFetcher ( MediaPortal.Video.Database.IMDB progress ) : System
progress MediaPortal.Video.Database.IMDB
Результат System

OnActorInfoStarting() публичный Метод

public OnActorInfoStarting ( IMDBFetcher fetcher ) : bool
fetcher IMDBFetcher
Результат bool

OnActorsEnd() публичный Метод

public OnActorsEnd ( IMDBFetcher fetcher ) : bool
fetcher IMDBFetcher
Результат bool

OnActorsStarted() публичный Метод

public OnActorsStarted ( IMDBFetcher fetcher ) : bool
fetcher IMDBFetcher
Результат bool

OnActorsStarting() публичный Метод

public OnActorsStarting ( IMDBFetcher fetcher ) : bool
fetcher IMDBFetcher
Результат bool

OnDetailsEnd() публичный Метод

public OnDetailsEnd ( IMDBFetcher fetcher ) : bool
fetcher IMDBFetcher
Результат bool

OnDetailsNotFound() публичный Метод

public OnDetailsNotFound ( IMDBFetcher fetcher ) : bool
fetcher IMDBFetcher
Результат bool

OnDetailsStarted() публичный Метод

public OnDetailsStarted ( IMDBFetcher fetcher ) : bool
fetcher IMDBFetcher
Результат bool

OnDetailsStarting() публичный Метод

public OnDetailsStarting ( IMDBFetcher fetcher ) : bool
fetcher IMDBFetcher
Результат bool

OnDisableCancel() публичный Метод

public OnDisableCancel ( IMDBFetcher fetcher ) : bool
fetcher IMDBFetcher
Результат bool

OnMovieNotFound() публичный Метод

public OnMovieNotFound ( IMDBFetcher fetcher ) : bool
fetcher IMDBFetcher
Результат bool

OnProgress() публичный Метод

public OnProgress ( string line1, string line2, string line3, int percent ) : void
line1 string
line2 string
line3 string
percent int
Результат void

OnRequestMovieTitle() публичный Метод

public OnRequestMovieTitle ( IMDBFetcher fetcher, string &movieName ) : bool
fetcher IMDBFetcher
movieName string
Результат bool

OnScanEnd() публичный Метод

public OnScanEnd ( ) : bool
Результат bool

OnScanIterated() публичный Метод

public OnScanIterated ( int count ) : bool
count int
Результат bool

OnScanIterating() публичный Метод

public OnScanIterating ( int count ) : bool
count int
Результат bool

OnScanStart() публичный Метод

public OnScanStart ( int total ) : bool
total int
Результат bool

OnSearchEnd() публичный Метод

public OnSearchEnd ( IMDBFetcher fetcher ) : bool
fetcher IMDBFetcher
Результат bool

OnSearchStarted() публичный Метод

public OnSearchStarted ( IMDBFetcher fetcher ) : bool
fetcher IMDBFetcher
Результат bool

OnSearchStarting() публичный Метод

public OnSearchStarting ( IMDBFetcher fetcher ) : bool
fetcher IMDBFetcher
Результат bool

OnSelectActor() публичный Метод

public OnSelectActor ( IMDBFetcher fetcher, int &selected ) : bool
fetcher IMDBFetcher
selected int
Результат bool

OnSelectMovie() публичный Метод

public OnSelectMovie ( IMDBFetcher fetcher, int &selected ) : bool
fetcher IMDBFetcher
selected int
Результат bool

RefreshIMDB() публичный статический Метод

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
Результат bool

ScanIMDB() публичный статический Метод

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
Результат bool

ScanIMDB() публичный статический Метод

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
Результат bool

this() публичный Метод

public this ( int index ) : MediaPortal.Video.Database.IMDB.IMDBUrl
index int
Результат MediaPortal.Video.Database.IMDB.IMDBUrl