IMDB_[EN][HTTPS]V 1.4.2.0 scriptDue to the new layout of the Main IMDb websites, it was necessary to fix the entire
Function ParsePage_IMDBMovieBASE to now re-download the information from the Main IMDb websites. Certain information is no longer available in the new layout of the Main IMDb websites, such as
Bottom 100, or has been modified or hidden, such as
IMDB Votes. A hidden mid box and a visible numid box are now added to the script. These are now the custom number fields listed below. //Get ~MID ID:~ and ~NUM ID::~
AddCustomFieldValueByName('MID ID:',GetFieldValueXML('mid'));
LogMessage(' ** Movie MID ID: '+GetFieldValueXML('mid')+' **');
if GetFieldValueXML('num') <> '0' then AddCustomFieldValueByName('NUM ID:',GetFieldValueXML('num'));
if GetFieldValueXML('num') <> '0' then LogMessage(' * Movie NUM ID: '+GetFieldValueXML('num')+' ||');
The new origgitle and alternatetitle information have now also been added.
//Get ~origtitle~
ItemValue:=TextBetWeenFirst(ItemList,'","name":"','","'); //Strings which opens/closes the data. WEB_SPECIFIC
If (Length(ItemValue)=0) Then ItemValue:=titleValue; //Provider hides the original title if same that title. WEB_SPECIFIC
AddFieldValueXML('origtitle',ItemValue);
AddCustomFieldValueByName('Origtitle',ItemValue);
LogMessage(' Get result origtitle:'+ItemValue+'||');
//Get ~alternatetitle~
ItemValue:=TextBetWeenFirst(ItemList,'","alternateName":"','","'); //Strings which opens/closes the data. WEB_SPECIFIC
AddCustomFieldValueByName('Localized title',ItemValue);
if ItemValue <> '' then LogMessage(' Get result alternatetitle:'+ItemValue+'||');
A custom Certification field is now added to the ParsePage_IMDBMovieMPAA Function to download the MPAA Certification List by country.
//Get "Certification" info
curPos:=Pos('<td class="ipl-zebra-list__label">Certification</td>',HTML);
if (curPos=0) then Exit;
EndPos:=curPos;
//Get "Certification" info
curPos:=Pos('<td class="ipl-zebra-list__label">Certification</td>',HTML);
If 0<curPos Then Begin
EndPos:=curPos;
ItemValue1:=HTMLValues2(HTML,'<td class="ipl-zebra-list__label">Certification</td>','</section>','<li class="ipl-inline-list__item">','</li>','<br> • ',EndPos); //WEB_SPECIFIC.
ItemValue1:=StringReplace(ItemValue1,':',': ',True,False,True);
ItemValue1:=StringReplace(ItemValue1,' (',' (',True,False,True);
AddCustomFieldValueByName('Certification','Certification<br> • '+ItemValue1);
LogMessage(' Certification:<br>'+ItemValue1+'||');
In the Function ParsePage_IMDBMoviePLOTSUMMARY, a custom IMDB Synopsis memo field is added because a function is added that is set to False by default to not transfer full IMDB Synopsis information to the comment field. //Script Options-------------------------------------------------------------------------------------------------------
//Retreive Data Config
.
.
.
// GET_FULL_PLOT_SUMMARY = True ; //Set to False to not wanted to Download full synopsis for Plot provider page for retreive the Synopsis info in Comment box.
GET_FULL_PLOT_SUMMARY = False ; //Set to True if to wanted to Download full synopsis for Plot provider page for retreive the Synopsis info in Comment box.
// MAX_IMAGE_HEIGTH = 1200; //Heigth limit of the stored posters.
MAX_IMAGE_HEIGTH = 500; //Heigth limit of the stored posters.
//Process Data Config
// ~Plot Summary~
If (Pos('It looks like we don'+Chr(39)+'t have any Summaries for this title yet.',HTML)>0) then Exit;
//Get "Summaries" info (~Comment~)
If Pos('<h1 class="header">Plot</h1>',HTML)>0 Then Begin
curPos:=Pos('<h1 class="header">Plot</h1>',HTML);
EndPos:=curPos;
ItemValue:=HTMLValues2(HTML,'Plot','See also','<li class="ipl-zebra-list__item" id="summary','</p>','<br><br>-------<br><br>',EndPos);
ItemValue:=StringReplace(ItemValue,'<a href='+Chr(39),'<link url="'+GetFieldValueXML('url'),True,False,True);
ItemValue:=StringReplace(ItemValue,'?ref_='+Chr(39)+'>',+'">',True,False,True);
ItemValue:=StringReplace(ItemValue,'</a>','</link>',True,False,True);
LogMessage(' Get result ItemValue (~Comment~):'+ItemValue+'||');
End;
I also fixed the maximum poster size to 500 due to the smaller size that the database stores. because this also reduces the size of the database size itself. PVD therefore also works better.