I made a few corrections:
MPAA
1 a.) MPAA code I Fixed //Get ~mpaa~ ~Release Rating~
//endPos:=curPos;
HTML:=StringReplace(HTML,'-','',True,False,False);
HTML:=StringReplace(HTML,'PG13','PG-13',True,False,False);
PVDField:='mpaa'; //For easy programation
WebFieldText:=' MPAA:'; //Only for Debuging
WebFieldOpen:='<img src="http://d3a8mw37cqal2z.cloudfront.net/assets/36eefb4c632941c/images/flags/us.png" />'; //WEB_SPECIFIC
WebFieldBegin:='</span>'; //WEB_SPECIFIC
WebFieldEnd:='</p>'; //WEB_SPECIFIC
curPos:=GetPVDFieldOneValue(HTML,curPos,PVDField,WebFieldText,WebFieldOpen,WebFieldBegin,WebFieldEnd);
1 b.) MPAA code I've moved since then more correct data transfer //Get ~Lenght~. (User option GET_LENGTH)
if GET_LENGTH then begin
PVDField:='length'; //For easy programation
WebFieldText:=' Length:'; //Only for Debuging
WebFieldOpen:='<strong>Runtime:</strong>'; //Web only one value. WEB_SPECIFIC
WebFieldBegin:='<span id="runtime">'; //WEB_SPECIFIC
WebFieldEnd:='</span>'; //WEB_SPECIFIC
curPos:=GetPVDFieldOneValue(HTML,curPos,PVDField,WebFieldText,WebFieldOpen,WebFieldBegin,WebFieldEnd);
end;
//Get ~mpaa~ ~Release Rating~
//endPos:=curPos;
HTML:=StringReplace(HTML,'-','',True,False,False);
HTML:=StringReplace(HTML,'PG13','PG-13',True,False,False);
PVDField:='mpaa'; //For easy programation
WebFieldText:=' MPAA:'; //Only for Debuging
WebFieldOpen:='<img src="http://d3a8mw37cqal2z.cloudfront.net/assets/36eefb4c632941c/images/flags/us.png" />'; //WEB_SPECIFIC
WebFieldBegin:='</span>'; //WEB_SPECIFIC
WebFieldEnd:='</p>'; //WEB_SPECIFIC
curPos:=GetPVDFieldOneValue(HTML,curPos,PVDField,WebFieldText,WebFieldOpen,WebFieldBegin,WebFieldEnd);
2 .) procedure ParseSearchResults I fixed it cleaned URL:
const
// Web delimiters. Null '' value it's not valid. WEB_SPECIFIC
WebSearchListOpen = '<ul class="search_results movie">'; //String which opens the Web Search List data. WEB_SPECIFIC
WebSearchResultOpen = '<div class="poster">'; //String which opens the Web Result data. WEB_SPECIFIC
WebSearchResultPreviewURLOpen = '<a href="'; //String which opens the Web Result PreviewURL data. WEB_SPECIFIC
WebSearchResultPreviewURLBegin = '" src="'; //String which opens the Web Result PreviewURL text. WEB_SPECIFIC
WebSearchResultPreviewURLEnd = '" width'; //String which closes the Web Result PreviewURL text. WEB_SPECIFIC
WebSearchResultDataOpen = '<div class="info">'; //String which opens the Web URL+Title+Year data. WEB_SPECIFIC
WebSearchResultURLBegin = '<h3><a href="'; //String which opens the Web Result URL text. WEB_SPECIFIC
//WebSearchResultURLEnd = '" t'; //String which closes the Web Result URL text. WEB_SPECIFIC
WebSearchResultURLEnd = '-'; //String which closes the Web Result URL text. WEB_SPECIFIC
WebSearchResultTitleBegin = 'itle="'; //String which opens the Web Result Title text. WEB_SPECIFIC
WebSearchResultTitleEnd = '">'; //String which closes the Web Result Title text. WEB_SPECIFIC
WebSearchResultYearBegin = 'span>('; //String which opens the Web Result Year text. WEB_SPECIFIC
WebSearchResultYearEnd = ')</span>'; //String which closes the Web Result Year text. WEB_SPECIFIC
procedure ParseSearchResults(HTML:String);
Attached to the TheMovieDB_[ES]_2014_mod script.
And yet:
Composers is Composer field in PVD.
'3_CreditType' composer