Author Topic: Help Please on upgrading to MOD  (Read 1330 times)

0 Members and 1 Guest are viewing this topic.

Offline DenS

  • Member
  • *
  • Posts: 24
    • View Profile
Help Please on upgrading to MOD
« on: March 26, 2026, 11:21:48 pm »
I unzipped PVD_1.0.2.7_MOD-V20191020.zip into a folder in C:\Program files\PersonalVideoDB-MOD and set it to open the database I used for the original PVD in my Documents folder. So far everything seemed OK then I ran into two issues I hope someone can help with.

1. Importing a 'people' using TheMovieDB People [EN] a small popup shows 'No Results' and quickly closes. Then the PVD-MOD stops running any scripts. I can maneuver within the program but the film strip icons are greyed out with the attached screen shot 'frozen' on the bottom of the screen only to be cleared with a restart.

2. A similar event occurs when importing some, but not every, movie from TheMovieDB [EN][API]. A screen shot is attached.

Suggestions?

... I have using PVD for a good number of years and use it to track my Digital Disk collection as well as what we watch streamed. As there is nothing else like it I am hoping that I can get the MOD upgrade functional.
Thanks for your help,
Den



Offline afrocuban

  • Moderator
  • *****
  • Posts: 672
    • View Profile
Re: Help Please on upgrading to MOD
« Reply #1 on: March 27, 2026, 08:08:06 am »
Run PVD with debug.bat and then upload log.txt file with a url for a title and a person that the issue occurrs with, so others could reproduce the issue, and maybe someone will be able to help you.
« Last Edit: March 27, 2026, 09:27:05 am by afrocuban »

Offline Ivek23

  • Global Moderator
  • *****
  • Posts: 2909
    • View Profile
Re: Help Please on upgrading to MOD
« Reply #2 on: March 27, 2026, 08:56:41 am »
I know what's wrong because I've been having these same issues with my TheMovieDB scripts that I use myself for a while now. The TheMovieDB scripts will need to be updated because the source code of the TheMovieDB API page has changed a bit and the scripts no longer work properly. Attach the TheMovieDB scripts that you're using and I'll see if I can fix anything. If it's still the same as when I updated my TheMovieDB scripts, then there shouldn't be any problems, update the TheMovieDB scripts.
Ivek23
Win 10 64bit (32bit)   PVD v0.9.9.21, PVD v1.0.2.7, PVD v1.0.2.7 + MOD


Offline DenS

  • Member
  • *
  • Posts: 24
    • View Profile
Re: Help Please on upgrading to MOD
« Reply #3 on: March 27, 2026, 01:03:47 pm »
Ivek,
Thank you for the offer to fix this. Attached are the two scripts for movies and people. These are in the latest download for PVD-MOD.
Being PVD is an import app for me if there is anything I can do to help, please let me know.
Den

Offline DenS

  • Member
  • *
  • Posts: 24
    • View Profile
Re: Help Please on upgrading to MOD
« Reply #4 on: March 27, 2026, 01:24:27 pm »
Here is the debug log.txt file for TheMovieDB [EN][API] Importing Predator and TheMovieDB People[EN][API] Importing Jason Statham.
Both result in a No Results window and the import icon remains greyed out.

Thanks
Den

Offline Ivek23

  • Global Moderator
  • *****
  • Posts: 2909
    • View Profile
Re: Help Please on upgrading to MOD
« Reply #5 on: March 28, 2026, 07:39:19 am »
The solution for searching results in both scripts is fixed.

The first hit for searching people is found in TheMovieDB People [EN] script, I will try if possible to find more displayed hits for certain people (for example, there are more hits for John Wayne).

TheMovieDB [EN][API] script does not have these problems.

A few more tests are needed, maybe today or in a few days I will first prepare TheMovieDB [EN][API] script, then TheMovieDB People [EN] script and attach them to the forum.
Ivek23
Win 10 64bit (32bit)   PVD v0.9.9.21, PVD v1.0.2.7, PVD v1.0.2.7 + MOD


Offline DenS

  • Member
  • *
  • Posts: 24
    • View Profile
Re: Help Please on upgrading to MOD
« Reply #6 on: March 29, 2026, 09:47:32 pm »
Thank You. Look forward to the fixes.

Is there a tutorial on PVD scripts? I am interested in learning just how they function.

Offline Ivek23

  • Global Moderator
  • *****
  • Posts: 2909
    • View Profile
Re: Help Please on upgrading to MOD
« Reply #7 on: March 30, 2026, 11:15:43 am »
Is there a tutorial on PVD scripts? I am interested in learning just how they function.

The Help board and Scripting Manual topic might be helpful.
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: 2909
    • View Profile
Re: Help Please on upgrading to MOD
« Reply #8 on: March 30, 2026, 11:39:05 am »
Thank You. Look forward to the fixes.

Here is an updated TheMovieDB [EN][API] script for you, which now finds and works search results, as well as several updates to the code for passing information.

Useful custom fields can be found at the links below:

https://www.videodb.info/forum_en/index.php/topic,4134.msg21722.html#msg21720

https://www.videodb.info/forum_en/index.php/topic,4134.msg21722.html#msg21722

There are also some custom fields, which are just additions to the normal fields, into which information is transferred and can be found in the script itself and added to the database as desired.

TheMovieDB_[EN][API] script is attached
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: 2909
    • View Profile
Re: Help Please on upgrading to MOD
« Reply #9 on: March 30, 2026, 01:53:27 pm »
TheMovieDB_[EN][API] _TV script is adapted to transfer series information. It uses the same custom fields as TheMovieDB_[EN][API] script.

Added ~Networks~ Long text custom field.

TheMovieDB_[EN][API] _TV script is attached.
« Last Edit: March 31, 2026, 07:19:51 am by Ivek23 »
Ivek23
Win 10 64bit (32bit)   PVD v0.9.9.21, PVD v1.0.2.7, PVD v1.0.2.7 + MOD


Offline DenS

  • Member
  • *
  • Posts: 24
    • View Profile
Re: Help Please on upgrading to MOD
« Reply #10 on: March 30, 2026, 02:04:34 pm »
Thanks.

Only issue is that if "No Results" window pops up the Import icon remains greyed out and a program restart is required. The movies that this happens on are in The Movie DB site. Examples:Caddy Casper, Shack, Bronco Billy etc.

Otherwise the script functions on many of my movies.

I'm parsing the scripting documentation trying to make head or tail of it. Scripts are not in my programming knowledge base

Again thank you for being there... PVD is one of kind and deserves to be kept current.

Den

Offline DenS

  • Member
  • *
  • Posts: 24
    • View Profile
Re: Help Please on upgrading to MOD
« Reply #11 on: March 30, 2026, 02:10:56 pm »
Hi, Again,
The _TV script you just sent (* TheMovieDB_[EN][API] _TV.psf (60.18 kB - downloaded 1 times.)) works on movies that the original you sent (* TheMovieDB_[EN][API].psf (62.11 kB - downloaded 1 times.)) first today hangs after the "No Result"

Offline Ivek23

  • Global Moderator
  • *****
  • Posts: 2909
    • View Profile
Re: Help Please on upgrading to MOD
« Reply #12 on: March 31, 2026, 07:29:07 am »
Only issue is that if "No Results" window pops up the Import icon remains greyed out and a program restart is required. The movies that this happens on are in The Movie DB site. Examples:Caddy Casper, Shack, Bronco Billy etc.

Also use the tmdb.dll file to search for results, which you can download from the download page using PVD or manually and copy it to the Plugins folder of the PVD program.

There are no results for Caddy Casper on The Movie DB websites with this exact title record.

For Shack, TheMovieDB_[EN][API] script finds me this title The Shack (2017). The same goes for Bronco Billy.

Why you have problems with "No Results", I don't know.
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: 2909
    • View Profile
Re: Help Please on upgrading to MOD
« Reply #13 on: April 01, 2026, 02:15:38 pm »
Here are the new TheMovieDB [API] script updated versions.

Code: [Select]
TheMovieDB_[API]
SCRIPT_VERSION  1.0.0.8

Code: [Select]
TheMovieDB_[API]_TV
SCRIPT_VERSION  1.1.0.1

I recommend these 2 supported scripts to use, there will be less "No Results" pop-ups because they do not use languages ​​(for example, translations into your primary language or perhaps into English on web pages).

I also recommend the tmdb.dll file, which may find certain addresses that the scripts may not find.

TheMovieDB_[API script and TheMovieDB_[API] _TV script is attached.
Ivek23
Win 10 64bit (32bit)   PVD v0.9.9.21, PVD v1.0.2.7, PVD v1.0.2.7 + MOD


Offline DenS

  • Member
  • *
  • Posts: 24
    • View Profile
Re: Help Please on upgrading to MOD
« Reply #14 on: April 01, 2026, 06:05:05 pm »
These two (no [EN] in the name) work much better than any other scripts I have tried.
Thanks
Den

Offline Ivek23

  • Global Moderator
  • *****
  • Posts: 2909
    • View Profile
Re: Help Please on upgrading to MOD
« Reply #15 on: April 04, 2026, 06:58:04 am »
In TheMovieDB_People_[API] script, search results now work, but it always finds and downloads the information for the first hit, which is usually correct. It also adds a link to the person api page with the downloaded information in the comment field, as well as a link to the person search api page.

TheMovieDB_People_[API] script is attached.
Ivek23
Win 10 64bit (32bit)   PVD v0.9.9.21, PVD v1.0.2.7, PVD v1.0.2.7 + MOD


Offline afrocuban

  • Moderator
  • *****
  • Posts: 672
    • View Profile
Re: Help Please on upgrading to MOD
« Reply #16 on: April 04, 2026, 11:45:54 am »
... but it always finds and downloads the information for the first hit, which is usually correct.


Unfortunately, this is huge problem for RottenTomatoes, since most of the time when there is one result, it is the wrong one, so I had to alter python script (still testing it) to pass same result twice so the search window could be raised with two identical results and I could check and be sure that finding was proper.


With MovieDB is easier, I think. Just repeat adding search result and send it to prList instead to prDownload, I think. Didn't test it though. For example:

Quote
if (NumbResult=1) then begin       //There is 1 Result.
    Title := TextBetWeenFirst(HTML,'"name":"','"');
    OriTitle := TextBetWeenFirst(HTML,'"original_name":"','"');
    Year := Copy(TextBetWeenFirst(HTML,'"first_air_date":"','"'),1,4);
    MovieId := TextBetWeenFirst(HTML,'"id":',',');
    MovieURL := BASE_API_URL_TV_PREFIX+MovieId+BASE_API_URL_TV_SUFIX;
    PreviewURL := TextBetWeenFirst(HTML,'"poster_path":"','"');
    if (2<Length(PreviewURL)) then begin
        PreviewURL := StringReplace(PreviewURL,'\','',True,True,False);
        PreviewURL := BASE_URL_IMAGE+PreviewURL;
    end else PreviewURL := '';
    If (Not POSTER_IN_SEARCH) Then PreviewURL := '';


    // Add the same result twice so the app shows the selection window
    AddSearchResult(Title, OriTitle, Year, MovieURL, PreviewURL);
    AddSearchResult(Title, OriTitle, Year, MovieURL, PreviewURL);


    Mode := smNormal;
    Result := prList;   // Force list mode instead of download
    Exit;
end;

 

anything