I made and attach the next version:
VERSION: 0.3.1.0 (06/11/2016) -> VVV: Use quotation marks for the paths.
but I see some things bizarre in you log file:
(8.11.2016 8:46:09) PVD Version: 0.9.9.21
¿why you don't use the latest version 1.0.2.7?
(8.11.2016 8:46:37) UpdateToolbar: 4
(8.11.2016 8:46:45) GET: http://www.videodb.info/upload/check.php
(8.11.2016 8:46:47) Update error: Socket Error # 10061
Connection refused.
(8.11.2016 8:46:52) UpdateToolbar: 5
It seems that your copy of PVdB have problems even with the http pages ¿are you sure that you haven't a proxy, firewall or antivirus with your PVdB? It's very rare that curl works out of PVdB and not in ¿are you sure that Proxomitron is not active?.
¿Can you test it in a clean downloaded 1.0.2.7 version? You can use a portable one decompressing:
http://www.videodb.info/bin/pvd1.zipin C:\Users\Ivo\Documents\PersonalVideoDB\ and adding the three needed curl files.
Perhaps other people can help us trying the script.
BTW:
The biggest solved of script is synchronize PVdB and the curl download and be sure when you parse that 'downpage.htm' is fresh and completed. So I do two steeps:
1) First the script delete the saved 'downpage.htm'.
//Delete the ancient dowloaded page file. Needed for wait to curl download.
While FileExists(ScriptPath+BASE_DOWNLOAD_FILE) do begin
FileExecute('cmd.exe', '/C del '+ScriptPath+BASE_DOWNLOAD_FILE);
LogMessage(' Waiting 1s for delete:'+ScriptPath+BASE_DOWNLOAD_FILE);
wait (1000);
end;
2) After curl call it waits to detected the 'downpage.htm'
//Wait curl finish and exist the downloaded page
While Not(FileExists(ScriptPath+BASE_DOWNLOAD_FILE)) do begin
LogMessage(' Waiting 2s for exists of:'+ScriptPath+BASE_DOWNLOAD_FILE);
wait (2000);
end;
So in your first log, the script has problems to delete 'downpage.htm', it tries and wait, tries and wait:
(8.11.2016 8:47:03) Waiting 1s for delete:C:\Program Files\Personal Video Database\Scripts\downpage.htm
(8.11.2016 8:47:04) Waiting 1s for delete:C:\Program Files\Personal Video Database\Scripts\downpage.htm
(8.11.2016 8:47:05) Waiting 1s for delete:C:\Program Files\Personal Video Database\Scripts\downpage.htm
When you block this part of code it detects that something goes wrong:
(8.11.2016 8:54:58) Global Var-ScriptPath|C:\Program Files\Personal Video Database\Scripts\|
(8.11.2016 8:54:58) Some error deleting: C:\Program Files\Personal Video Database\Scripts\downpage.htm