Web import plugins (information and posters)
function GetURL(const isEpisode : Boolean; const CurrentURL : PCHAR; out NewURL : PCHAR) : Integer; stdcall;
isEpisode - should plugin search for a normal movie or tv episode
CurrentURL - URLs specified for the movie separated with Space
NewURL - This variable is used to pass a new URL to the application (to search (for ex. "http://imdb.com/find?s=tt&q=%s") or just download)This function must be present.
function GetCodePage : Cardinal; stdcall;This function must return code page need to format HTTP requests.
function Parse(URL : PCHAR; Data : PWideChar) : SHORT; stdcall;
URL - Address of this page
Data - Response from the Web service (normally HTML) which should be processed by the plugin.This function is always called when Personal Video Database gets a web page from the Server.
function GetResultsCount : Integer; stdcall;This function is called when the Parse function returned PLUGIN_RESPONSE_LIST previously to get the count of items in the list.
function GetSelection(const N : Integer; out Title, Title2 : PWideChar; out URL, Preview, Browse : PCHAR; out Year : Smallint) : BOOL; stdcall;
N - Item in the list that should be copied into the next 3 parameters.
Title, Title2, Year, URL, PreviewURL, BrowseURL - Data which represents movie or poster. PreviewURL is only used when posters have a preview image.The function should return True if everything went ok, False otherwise.
function GetMovie(const N : Integer; var AMovieInfo : PWideChar) : BOOL; stdcall;
function GetHuman(const N : Integer; var AHumanInfo : PWideChar) : Integer; stdcall;
N - Number of the movie/human in the listIf user select a movie/human from the list or only one movie/human is in the list this function will be called to get the data.
Movie information should be passed back as XML . The function should return True if everything was ok and False otherwise. (movies)
Result can be PLUGIN_RESPONSE_ERROR .. PLUGIN_RESPONSE_OKPHOTO (people)
procedure GetLoginInfo(out ScriptURL : PCHAR; out Params : PCHAR); stdcall;
ScriptURL - Address of the login script
Params - Parameters that should be passed to the scriptThis procedure is only needed if the web service the plugin is working with need such information.
function GetReferrer : PCHAR;Implement this function and return a String with Referrer if the Web service works only wit special one.
function GetSelectTitle(const LangID : Integer) : PWideChar; stdcall;
LangID - Currently selected user interface languageImplement this function if you want to set a special Selection Window title.