Author Topic: New IMDb Movie v4 Script Discussion  (Read 422 times)

0 Members and 1 Guest are viewing this topic.

Offline afrocuban

  • Moderator
  • *****
  • Posts: 623
    • View Profile
New IMDb Movie v4 Script Discussion
« on: January 16, 2025, 03:16:40 am »
I have brought back search function to Movie script too, using Selenium, and will publish it altogether with People v4.0 script and correpsondent Selenium scripts, after I finish full transition to Selenium.

All People scripts are ready, but I need to finish Movie scripts.


It'll probably take me a month.
« Last Edit: January 16, 2025, 03:21:00 am by afrocuban »

Offline Ivek23

  • Global Moderator
  • *****
  • Posts: 2831
    • View Profile
Re: New IMDb Movie v4 Script Discussion
« Reply #1 on: March 31, 2025, 07:18:18 am »
Due to certain changes in the source code of the page, certain information is now not transferred by the script.

This happens mainly where a certain part of the code needs to be changed as can be seen in the examples below.

This part of the code

Quote
'<span class="ipc-metadata-list-item__label"'
will need to be changed with this part of the code
Quote
'<span class="ipc-metadata-list-item__label ipc-btn--not-interactable"'

or

This part of the code

Quote
'<span class="ipc-metadata-list-item__list-content-item"'
will need to be changed with this part of the code
Quote
'<span class="ipc-metadata-list-item__list-content-item ipc-btn--not-interactable"'

Once these changes are made, the script transfers information normally.

This will need to be done everywhere where the above parts of the code are.

And this:

First, it will be necessary to optimize the existing script so that it transfers all the information, because it currently does not transfer all of it due to code duplication, especially in the ParsePage_IMDBMovieREFERENCE Function.

Only then, when the script works optimally, should additional ParsePage_IMDB Functions be added.
Ivek23
Win 10 64bit (32bit)   PVD v0.9.9.21, PVD v1.0.2.7, PVD v1.0.2.7 + MOD


Offline Ivek23

  • Global Moderator
  • *****
  • Posts: 2831
    • View Profile
Re: New IMDb Movie v4 Script Discussion
« Reply #2 on: April 03, 2025, 06:46:31 am »
Also, new search window introduced, with different types of search and countdown of 10 seconds defaulted to "general" search.

I suggest a fix in the Selenium_Chrome_Search-v4.py script for the search window, namely that the window is open for 15 to 20 seconds when a "general" search is started.

New suggestion for how to make the search options visible.
Quote
    # Add all the new options to the pop-up
    tk.Radiobutton(dialog, text="General", variable=search_type_var, value="General").pack(anchor=tk.W)
    tk.Radiobutton(dialog, text="Movie, TV Movie, Video", variable=search_type_var, value="Movie, TV Movie, Video").pack(anchor=tk.W)
    tk.Radiobutton(dialog, text="TV Series, TV Mini Series", variable=search_type_var, value="TV Series, TV Mini Series").pack(anchor=tk.W)
    tk.Radiobutton(dialog, text="TV Episode", variable=search_type_var, value="TV Episode").pack(anchor=tk.W)
    tk.Radiobutton(dialog, text="TV Special, TV Short", variable=search_type_var, value="TV Special, TV Short").pack(anchor=tk.W)
    tk.Radiobutton(dialog, text="Music Video", variable=search_type_var, value="Music Video").pack(anchor=tk.W)
    tk.Radiobutton(dialog, text="Misc", variable=search_type_var, value="Misc").pack(anchor=tk.W)

The search options Movie, TV Movie, Video should not be together, because some movies also have a Video tag, such as 18-Year-Old Virgin movie.
Ivek23
Win 10 64bit (32bit)   PVD v0.9.9.21, PVD v1.0.2.7, PVD v1.0.2.7 + MOD


 

anything