English > Support
IMDB_[EN][HTTPS] new site layout script
Ivek23:
--- Quote from: jondak on July 19, 2021, 09:29:24 pm ---Hello,
For the Country Field:
curPos:=Pos('<span class="ipc-metadata-list-item__label">Countries of origin</span>',HTML); //WEB_SPECIFIC.
If 0<curPos Then Begin
EndPos:=curPos;
ItemValue:=HTMLValues(HTML,'<span class="ipc-metadata-list-item__label">Countries of origin</span>','</ul>','<li role="presentation" class="ipc-inline-list__item">','</li>',', ',endPos);
becomes:
curPos:=Pos('<span class="ipc-metadata-list-item__label">Country of origin</span>',HTML); //WEB_SPECIFIC.
If 0<curPos Then Begin
EndPos:=curPos;
ItemValue:=HTMLValues(HTML,'<span class="ipc-metadata-list-item__label">Country of origin</span>','</ul>','<li role="presentation" class="ipc-inline-list__item">','</li>',', ',endPos);
They replaced in the page Countries of origin with Country of origin ( both test and RC version)
I've tested with 2 movies only as its late here and worked
--- End quote ---
I will explain why twice the code for For the Country Field.
For example:
for the movie " http://www.imdb.com/title/tt0086879/ " (Amadeus) must use this code
--- Code: --- curPos:=Pos('<span class="ipc-metadata-list-item__label">Countries of origin</span>',HTML); //WEB_SPECIFIC.
If 0<curPos Then Begin
EndPos:=curPos;
ItemValue:=HTMLValues(HTML,'<span class="ipc-metadata-list-item__label">Countries of origin</span>','</ul>','<li role="presentation" class="ipc-inline-list__item">','</li>',', ',endPos);
--- End code ---
for the script to download Country information.
for the movie " http://www.imdb.com/title/tt0142920/ " (Tokugawa irezumi-shi: Seme jigoku) or for the movie " http://www.imdb.com/title/tt0214388/ " (100 Girls) must use this code
--- Code: --- curPos:=Pos('<span class="ipc-metadata-list-item__label">Country of origin</span>',HTML); //WEB_SPECIFIC.
If 0<curPos Then Begin
EndPos:=curPos;
ItemValue:=HTMLValues(HTML,'<span class="ipc-metadata-list-item__label">Country of origin</span>','</ul>','<li role="presentation" class="ipc-inline-list__item">','</li>',', ',endPos);
--- End code ---
for the script to download Country information.
Because no code was added in IMDB_ [EN] [HTTPS] _Test script for one country, script did not download any Country information.
The same is true and is still in use for origlang and studio code.
Ivek23:
--- Quote from: Borea on July 20, 2021, 02:11:39 am ---The IMDB _RC script works fine with me. Thanks Ivek.
--- End quote ---
Thanks for the positive feedback.
jondak:
Thank you,
didn't know they use different labels if there are multiple countries. Though they change it in the site redesign.
Testing RC now
Cheers.
Pacifist:
Thanks!!! But:
movie Nomad (http://www.imdb.com/title/tt9770150/), problems
1) genres
2) budget
3) whether it is possible to control the "COMMENTS" line (on / off). Often this only duplicates the "DESCRIPTION".
P.S. we are waiting for a new version of the script "IMDB_ [EN] [HTTPS] (episodes) .psf" and "IMDB_ [EN] [HTTPS] (series) .psf" ;)
Thank you very much!!!
Ivek23:
--- Quote from: Pacifist on July 21, 2021, 10:28:09 am ---Thanks!!! But:
movie Nomad (http://www.imdb.com/title/tt9770150/), problems
1) genres
2) budget
--- End quote ---
There was the same problem with genres as in the case already mentioned and described above. As for the budget, however, the transfer of information is only when the website in the Box office has a Budget record. Otherwise, there is no transfer of Budget information when there is no Budget record on the website in the Box office.
--- Quote from: Pacifist on July 21, 2021, 10:28:09 am ---3) whether it is possible to control the "COMMENTS" line (on / off). Often this only duplicates the "DESCRIPTION".
--- End quote ---
There may be multiple duplicates of "COMMENTS" record in the "DESCRIPTION" field, but usually the record in the "DESCRIPTION" field is only one summaries record, while in the "COMMENTS" field there is a full synopsis record. Below are links to more comparisons for the 13 Going on 30 (2004) movie.
movie " 13 Going on 30 (2004) https://www.imdb.com/title/tt0337563/ "
https://www.imdb.com/title/tt0337563/plotsummary?ref_=tt_stry_pl#summaries
https://www.imdb.com/title/tt0337563/plotsummary?ref_=tt_stry_pl#synopsis
There will be an option in the script to manually set the setting to true or false to the "COMMENTS" field (//Script Options). There will also be a synopsis memo field custom.
--- Quote ---//Script Options
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.
--- End quote ---
--- Quote from: Pacifist on July 21, 2021, 10:28:09 am ---P.S. we are waiting for a new version of the script "IMDB_ [EN] [HTTPS] (episodes) .psf" and "IMDB_ [EN] [HTTPS] (series) .psf" ;)
--- End quote ---
As for the new script updates for the series and episodes, it will take a little longer due to the new layout of the Main IMDb websites. Now the source code notation has changed a lot, which causes quite a few headaches so that certain information can be found about where it is written. As a result, it also causes problems for the correct way to write code in a script to download certain information.
IMDB_ [EN][HTTPS]_RC1 script is added.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version