SCRIPT_VERSION | Version of the script |
SCRIPT_NAME | Short script name |
SCRIPT_DESC | Long script description |
SCRIPT_LANG | Language of the information retrieved. Ex.: $09 - English, $19 - Russian, $07 - German. A full list can be found here: http://msdn.microsoft.com/en-us/library/ms776294(VS.85).aspx (you need the number after 0x from "Prim. lang. identifier" column). It is not very important to define the right language, but recommended for better usability. |
SCRIPT_TYPE | Script type:
|
BASE_URL | The first level domain of the web-site. Ex.: http://www.amazon.com |
RATING_NAME | Name of the site rating with the word "rating" |
SEARCH_STR | URL to use for searching the web-site. %s is replaced with a movie title or person name |
CODE_PAGE | Web-site encoding. For example if the web-site encoding is windows-1250 than this constant should have a value of 1250. You can usually find the web-page encoding in the beginning of a html file. Needed HTML tags look like this: <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>. If you do not know what encoding to use, just enter 0 to let the program auto detect it. A full list of supported values can be found here: http://msdn.microsoft.com/en-us/library/ms776446.aspx |
function GetScriptVersion : WideString; | Returns script version |
function GetScriptName : WideString; | Returns script name |
function GetScriptDesc : WideString; | returns script description |
function GetBaseURL : String; | Returns web-site's base URL |
function GetScriptLang: Cardinal; | Returns script language |
function GetScriptType : Byte; | Returns script type |
function GetCurrentMode : Byte; | Returns current script state:
|
function GetDownloadURL : String; | Returns URL, that the main program should download. If the script is in a search mode it should return SEARCH_STR |
function ParsePage(HTML : WideString; URL : String) : Cardinal; | This is the most interesting function :) HTML variable will contain text of the downloaded page, URL variable will contain address of the page. Your main goal is to parse this data and fill movie/person fields. |
function GetRatingName : WideString; | Returns rating name |
function GetCodePage : Cardinal; | Returns web-site encoding |
procedure GetLoginInfo(out URL : String; out Params : String); | Returns data needed to login to the user account on the web-site. URL variable should be set to the login script url. Params variable should be set to parameters needed to login into the account (usually login and password). (POST method is used to pass parameters) |
0 | URL |
1 | Title |
2 | Original Title |
3 | Aka |
4 | Year |
5 | Genre |
6 | Category |
7 | Country |
8 | Studio |
9 | MPAA |
10 | Additional rating |
11 | Tags |
12 | Tagline |
13 | Description |
14 | Duration |
15 | Features |
0 | URL |
1 | Name |
2 | Translated name |
3 | Alternative names |
4 | Date of birth |
5 | Place of birth |
6 | Genre |
7 | Biography |
8 | Date of death |
0 | Actor |
1 | Director |
2 | Writer |
3 | Composer |
4 | Producer |
0 | Actor |
1 | Director |
2 | Writer |
3 | Composer |
4 | Producer |
num | |
title | |
origtitle | |
aka | |
year | |
genre | |
country | |
studio | |
release | |
mpaa | |
location | |
category | |
tagline | |
description | |
count | |
type | |
rating | |
imdbrating | |
orating | |
orname | |
rip | |
length | |
langs | |
translation | |
resolution | |
videocodec | |
videobitrate | |
audiocodec | |
audiobitrate | |
size | |
url | |
path | |
comment | |
dateadded | |
code | |
label | |
loan | |
subs | |
framerate | |
label | |
features | |
viewed | |
bookmark | |
wish | |
loandate | |
viewdate | |
tags |
name | |
transname | |
altnames | |
birthday | |
birthplace | |
bio | |
death |