English > Support
Imdb People script issues
afrocuban:
--- Quote from: Ivek23 on December 28, 2024, 04:45:16 pm ---
Unfortunately, I don't plan on working on any Imdb Awards section anymore for any updates or fixes to the movies or people code in Function ParsePage_IMDBMovieAWARDS. It's too complicated and completely inappropriate layout or notation of the Awards page source code to be able to edit it to properly record the Awards data.
--- End quote ---
Thanks Ivek. I will now continue to integrate everything in order to get fully revised and functional IMDB_People_[EN][HTTPS].psf script and will do my best to maintain it in the future...
For that, I prepared Chrome selenium script at:
--- Quote ---http://www.videodb.info/forum_en/index.php?topic=4364.msg22706
--- End quote ---
afrocuban:
Hello and Happy New Year!
I'm close to finish the script, and at the moment I'm stuck with the fact that all of a sudden people's photos aren't populated to PVD although properly downloaded and sent to AddImageURL. Here's the log about it:
--- Quote ---1/3/2025 3:36:26 AM) ImageFile path in Get ~Photo~: X:\PATH\To\PVD\Scripts\Tmp\downimage-BIN-Photo.jpg
(1/3/2025 3:36:26 AM) Function DownloadImage BEGIN======================|
(1/3/2025 3:36:26 AM) Global Var-DownloadURL|https://www.imdb.com/name/nm0001833/|
(1/3/2025 3:36:26 AM) Local Var-URL|https://m.media-amazon.com/images/M/MV5BMjAwNzc5MjE0N15BMl5BanBnXkFtZTcwMzUyNTMzNw@@._V1_UY12000_.jpg|
(1/3/2025 3:36:26 AM) Local Var-OutPutFile|X:\PATH\To\PVD\Scripts\Tmp\downimage-BIN-Photo.jpg|
(1/3/2025 3:36:26 AM) Download with PVdBDownPage in file:|X:\PATH\To\PVD\Scripts\Tmp\downimage-BIN-Photo.jpg the information of:|https://m.media-amazon.com/images/M/MV5BMjAwNzc5MjE0N15BMl5BanBnXkFtZTcwMzUyNTMzNw@@._V1_UY12000_.jpg||
(1/3/2025 3:36:26 AM) Waiting 2s for exists of:X:\PATH\To\PVD\Scripts\Tmp\downimage-BIN-Photo.jpg
(1/3/2025 3:36:28 AM) Now present complete page file: X:\PATH\To\PVD\Scripts\Tmp\downimage-BIN-Photo.jpg
(1/3/2025 3:36:28 AM) Function DownloadImage END======================|
(1/3/2025 3:36:28 AM) Image successfully downloaded to: X:\PATH\To\PVD\Scripts\Tmp\downimage-BIN-Photo.jpg
(1/3/2025 3:36:28 AM) Adding image with URL: X:\PATH\To\PVD\Scripts\Tmp\downimage-BIN-Photo.jpg and type: itPoster
(1/3/2025 3:36:28 AM) AddImageURL has been called with ImageType: 0 and ImageFile: X:\PATH\To\PVD\Scripts\Tmp\downimage-BIN-Photo.jpg
--- End quote ---
Do you have any idea why is that? I also tried with itPhoto (4) but no luck... Checkbox "Overwrite" is checked for the script, so it's not about that too, and it doesn't work even if there wasn't photo at all.
Ivek23:
Also try the IMDB_People_[EN][HTTPS]-Awards script, if it uploads people's photos.
Reduce it here too, maybe it will help
MAX_IMAGE_HEIGHT = 1200;
The definition of the people's photo import path could also be a problem, check it and you'll see what happens.
In the awards code, correct the part of the code here and download all visible awards.
--- Quote --- // Extract entire award block
curPos := awardPos;
endPos := PosFrom('</div></div></li>', HTML, curPos);
If endPos = 0 Then Begin
LogMessage('No closing tag for award div found');
Break;
End;
Award := Copy(HTML, curPos, endPos - curPos);
curPos := endPos + Length('</div></div></li>');
LogMessage('Award Content Extracted Successfully: ' + Award);
Award:=StringReplace(Award,'"winner"','',False,True,False);
--- End quote ---
afrocuban:
I tried everything you said, and everything else possible and impossible, I even created separate, dedicated function to AddImageURL, but to na avail.... Here's the log for that. It claims photo is added, but it's not:
--- Quote ---(1/4/2025 2:30:45 AM) Function DownloadPage END======================|
(1/4/2025 2:30:45 AM) All pages downloaded successfully.
(1/4/2025 2:30:45 AM) Function DownloadPageMain BEGIN======================|
(1/4/2025 2:30:45 AM) Global Var-DownloadURL|downpage-UTF8_NO_BOM.htm|
(1/4/2025 2:30:45 AM) Reading main file: X:PATH\To_PVD\Scripts\Tmp\downpage-UTF8_NO_BOM.htm
(1/4/2025 2:30:45 AM) Function DownloadPageMain END======================|
(1/4/2025 2:30:45 AM) HandlePhoto function called.
(1/4/2025 2:30:45 AM) ImageFile path in Get ~Photo~: X:PATH\To_PVD\Scripts\Tmp\downimage-BIN-Photo.jpg
(1/4/2025 2:30:45 AM) Function DownloadImage BEGIN======================|
(1/4/2025 2:30:45 AM) Global Var-DownloadURL|https://www.imdb.com/name/nm0000017/|
(1/4/2025 2:30:45 AM) Local Var-URL|https://m.media-amazon.com/images/M/MV5BMTI0NTcyMTM5OF5BMl5BanBnXkFtZTYwOTkzMDU2._V1_UY12000_.jpg|
(1/4/2025 2:30:45 AM) Local Var-OutPutFile|X:PATH\To_PVD\Scripts\Tmp\downimage-BIN-Photo.jpg|
(1/4/2025 2:30:45 AM) Download with PVdBDownPage in file:|X:PATH\To_PVD\Scripts\Tmp\downimage-BIN-Photo.jpg the information of:|https://m.media-amazon.com/images/M/MV5BMTI0NTcyMTM5OF5BMl5BanBnXkFtZTYwOTkzMDU2._V1_UY12000_.jpg||
(1/4/2025 2:30:45 AM) Waiting 2s for exists of:X:PATH\To_PVD\Scripts\Tmp\downimage-BIN-Photo.jpg
(1/4/2025 2:30:47 AM) Now present complete page file: X:PATH\To_PVD\Scripts\Tmp\downimage-BIN-Photo.jpg
(1/4/2025 2:30:47 AM) Function DownloadImage END======================|
(1/4/2025 2:30:47 AM) Image successfully downloaded to: X:PATH\To_PVD\Scripts\Tmp\downimage-BIN-Photo.jpg
(1/4/2025 2:30:47 AM) Adding image with URL: X:PATH\To_PVD\Scripts\Tmp\downimage-BIN-Photo.jpg and type: itPoster
(1/4/2025 2:30:47 AM) AddImageURL has been called with ImageType: 0 and ImageFile: X:PATH\To_PVD\Scripts\Tmp\downimage-BIN-Photo.jpg
(1/4/2025 2:30:47 AM) Person -> LoadStatic -> 0ms
(1/4/2025 2:30:47 AM) Person -> LoadMultivalues -> 0ms
(1/4/2025 2:30:47 AM) Person -> LoadFilms -> 16ms
(1/4/2025 2:30:47 AM) Person -> LoadAwards -> 0ms
(1/4/2025 2:30:47 AM) Person -> LoadImages -> 0ms
(1/4/2025 2:30:47 AM) Get result PhotoURL: https://m.media-amazon.com/images/M/MV5BMTI0NTcyMTM5OF5BMl5BanBnXkFtZTYwOTkzMDU2._V1_UY12000_.jpg ||
(1/4/2025 2:30:47 AM) Script end. After, PVdB will retrieve from ListImage and info of person in order get the photo
(1/4/2025 2:30:47 AM) Photo processed and added successfully.
--- End quote ---
I have changed real path of my PVD with "X:PATH\To_PVD\" to post it here for privacy reasons...
afrocuban:
I give up. I will post script without photo populate working for me. Maybe someone will check it...
Here it is, check:
--- Quote ---http://www.videodb.info/forum_en/index.php/topic,4367.0.html
--- End quote ---
and
--- Quote ---http://www.videodb.info/forum_en/index.php?topic=4368.0
--- End quote ---
for more
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version