6
« Last post by Ivek23 on October 20, 2025, 04:19:15 pm »
IMDB_Movie_[EN][Selenium]-v4.psf
Between lines 138 and 139 is this:
GET_FULL_CONNECTIONS = False ; //To call Function ParsePage_IMDBMovieCONNECTIONS. Not used for parsing, since it is enough to choose both SIMPLE and COMPLEX connections. --> to "True".
Between lines 7992 and 7993 is this:
If GET_FULL_CONNECTIONS Then
Begin
However, when you run the ** SeleniumPVDbScriptsConfig v4 ** script in PVD and uncheck all Connections settings and then restart PVD, the following happens.
IMDB_Movie_[EN][Selenium]-v4.psf does not work.
The following parts of the code are missing.
Between lines 138 and 139 is missing:
GET_FULL_CONNECTIONS = False ; //To call Function ParsePage_IMDBMovieCONNECTIONS. Not used for parsing, since it is enough to choose both SIMPLE and COMPLEX connections. --> to "True".
However, between lines 7992 and 7993, this
[code] If GET_FULL_CONNECTIONS Then
Begin[/code]
changes to this:
If GET_FULL_CONNECTIONS = False ;
Add the following code to the script
//(*
function CustomStringReplace(const Source: string; const OldPattern: array of string; const NewPattern: array of string): string;
var
i: Integer;
ResultString: string;
begin
ResultString := Source;
for i := Low(OldPattern) to High(OldPattern) do
begin
ResultString := StringReplace(ResultString, OldPattern[i], NewPattern[i], True, False, True);
end;
Result := ResultString;
end;
//*)
and then you can add the following code to the Metascore code.
ItemValue := CustomStringReplace(ItemValue, ['0</', '1</', '2</', '3</', '4</', '5</', '6</', '7</', '8</', '9</'], [',0', ',1', ',2', ',3', ',4', ',5', ',6', ',7', ',8', ',9']);
//ItemValue := StringReplace(ItemValue, '0</', '.0', True, False, True);
//ItemValue := StringReplace(ItemValue, '1</', '.1', True, False, True);
//ItemValue := StringReplace(ItemValue, '2</', '.2', True, False, True);
//ItemValue := StringReplace(ItemValue, '3</', '.3', True, False, True);
//ItemValue := StringReplace(ItemValue, '4</', '.4', True, False, True);
//ItemValue := StringReplace(ItemValue, '5</', '.5', True, False, True);
//ItemValue := StringReplace(ItemValue, '6</', '.6', True, False, True);
//ItemValue := StringReplace(ItemValue, '7</', '.7', True, False, True);
//ItemValue := StringReplace(ItemValue, '8</', '.8', True, False, True);
//ItemValue := StringReplace(ItemValue, '9</', '.9', True, False, True);
The same can be done with this.
//Date ~Updated~ (choose simple or verbose version)
Date := DateToStr(CurrentDateTime);
//AddFieldValueXML('viewdate', Date); //Only date, don't admit time-. Set Seen value at the same time.
//AddFieldValueXML('moddate', Date + ' ' + TimeToStr(CurrentDateTime)); //Block the dB saving
ExplodeString(Date, DateParts, '-');
Date:=DateParts[2]+'.'+ DateParts[1]+'.'+DateParts[0];
Date := CustomStringReplace(Date, ['01.', '02.', '03.', '04.', '05.', '06.', '07.', '08.', '09.'], ['1.', '2.', '3.', '4.', '5.', '6.', '7.', '8.', '9.']);
// Date := StringReplace(Date, '01.', '1.', True, True, False);
//Date := StringReplace(Date, '02.', '2.', True, True, False);
//Date := StringReplace(Date, '03.', '3.', True, True, False);
//Date := StringReplace(Date, '04.', '4.', True, True, False);
//Date := StringReplace(Date, '05.', '5.', True, True, False);
//Date := StringReplace(Date, '06.', '6.', True, True, False);
//Date := StringReplace(Date, '07.', '7.', True, True, False);
//Date := StringReplace(Date, '08.', '8.', True, True, False);
//Date := StringReplace(Date, '09.', '9.', True, True, False);
//AddCustomFieldValueByName('Updated', Date); // (Left for FA Script)
//AddCustomFieldValueByName('Updated0', Date + ' at ' + TimeToStr(CurrentDateTime)); // Saved for RottenTomatoes
AddCustomFieldValueByName('IUpdated', Date + ' at ' + TimeToStr(CurrentDateTime) + ' • ' + SCRIPT_FILE_NAME + ' ' + SCRIPT_VERSION); // Annoying
LogMessage('Function ParsePage - Provider data info retreived Ok in ' + DateToStr(CurrentDateTime) + ' ' + TimeToStr(CurrentDateTime) + '| (~Updated~)');
Mode := smFinished;
LogMessage('Function ParsePage smNormal END====================== |');
Exit;
End;