Recent Posts

Pages: 1 2 3 [4] 5 6 7 8 9 10
31
Support / Re: How to filter movies by movie connections
« Last post by Ivek23 on April 21, 2026, 07:00:34 am »
Is there a way to filter movies by movie connections? I want to get a list of movies that don't  have any connections.

As far as I know, there is no way to filter movies by movie connections to get a list of movies that have no connections.

But maybe there is a way to get it.

A good example is Karaula (The Border Post) at the link below, where perhaps a field could be created, which could then be put into the database to see which movies are those that have no connections.

https://www.imdb.com/title/tt0466561/movieconnections/
32
The line "logging.debug("Non-FilmAffinity → using plain requests." doesn't seem to be in my Selenium_Chrome_DownloadImage-v4.py script.  I've attached it so you can see if something's wrong.
33
Support / How to filter movies by movie connections
« Last post by afrocuban on April 20, 2026, 05:42:11 pm »
Is there a way to filter movies by movie connections? I want to get a list of movies that don't  have any connections.
34
Also before trying to download image from cmd, and finally from within PVD, try from cmd:

Quote
python "C:\Program Files\PVD_1.0.2.7_MOD-V20191020\Scripts\Selenium_Chrome_Base_page_v4.py" https://www.imdb.com/title/tt0858568/ "C:\Program Files\PVD_1.0.2.7_MOD-V20191020\Scripts\Tmp\downpage-UTF8_NO_BOM.htm" ""


so we could be sure that the main page is properly downloaded too from cmd. Properly means, no messages in cmd, clean exit to prompt, and the files are there in /Tmp folder.
35
Ok, that looks good.
So the python scripts that download pages looks good. The next thing is to check the python script that downloads poster.
First replace the line 121 in the Selenium_Chrome_DownloadImage-v4.py script:

Quote
logging.debug("Non-FilmAffinity → using plain requests.")


with

Quote
logging.debug("Non-FilmAffinity - using plain requests.")


and save it, then run from cmd:

Quote
python "C:\Program Files\PVD_1.0.2.7_MOD-V20191020\PersonalVideoDB\Scripts\Selenium_Chrome_DownloadImage-v4.py" "https://m.media-amazon.com/images/M/MV5BZTcwYTY5MjAtOGU0MS00MGM5LThiYTMtMDM0YWIzYTM5OTczXkEyXkFqcGc@._V1_.jpg" "C:\Program Files\PVD_1.0.2.7_MOD-V20191020\PersonalVideoDB\Scripts\Tmp\poster.jpg"

Post any messages from cmd. If the cmd finishes clean without error messages and the poster is there in the /Tmp folder, then run IMDb Movie script for any movie from within PVD and post log.txt file. Don't forget to check to download posters and to run PVD in debug mode with debug.vbs so we could get log.txt.


36
You mean to run this again from cmd (using my own path), right?

python "C:\PersonalVideoDB\Scripts\Selenium_Chrome_Movie_Additional_pages_v4.py" https://www.imdb.com/title/tt0858568/ "C:\PersonalVideoDB\Scripts\Tmp\downpage-UTF8_NO_BOM.htm" ""

I ran it, and it just sat there for a while, and then went back to a new command prompt with no other information.  But there are a lot of folders and files in the Tmp folder now.  I count 14 folders that start with "UserData", and they all have subfolders and files in them.  Then there are a bunch of files that start with "downpage" and one other file, which I've attached. Hopefully that's the one you're looking for, but if there are others that would help, I'll attach those too.
37
The only things that matters are the logs to post them here. Meaning, all the steps you took until we concluded about psutil. Run the scripts from the cmd...
38
Okay, I installed psutil and here's what happened:

I tried the IMDB Movie script again, and the same window popped up as if it wanted me to choose a file or image.
I hit 'cancel', but instead of getting the usual error message with options to continue application, restart application, etc., this time it appeared to finally be downloading information.
I waited for 20-30 seconds, it finished, and the script had downloaded an image for the selected movie and a few other bits of information like the genre, studio, IMDB rating, and a couple of other things.  However, no cast, tags, summary, etc.
I opened the configurator, and pretty much every box had a checkmark, so I made one change, which was to uncheck the "download posters" box.
I clicked 'apply', closed the configurator and tried the IMDB Movie script again.
The "open" window popped up as before, so I hit 'cancel'. This time, as it was doing before I installed psutil, the "an error occured in the application" box popped up with the options to continue, restart, or close.
I tried it a few more times on a few different movies, and I get that same error message each time.
39
Ok, now everything clear, self explanatory. Just install psutil, in cmd, like:
Quote
pip install psutil

But now I'm wondering: if the script worked at some point, and then not, that doesn't seem plausible...
40
The result of running the script from cmd is:

Traceback (most recent call last):
  File "C:\Program Files\PVD_1.0.2.7_MOD-V20191020\PersonalVideoDB\Scripts\Selenium_Chrome_Movie_Additional_pages_v4.py", line 19, in <module>
    import psutil  # NEW: for precise process cleanup
    ^^^^^^^^^^^^^
ModuleNotFoundError: No module named 'psutil'


The output of the next command is Python 3.14.4

The result of checking Chrome version is 147.0.7727.56
Pages: 1 2 3 [4] 5 6 7 8 9 10
anything