Author Topic: Personal Video Database 1.0.2.7 MOD  (Read 284241 times)

0 Members and 8 Guests are viewing this topic.

Offline Ivek23

  • Global Moderator
  • *****
  • Posts: 2736
    • View Profile
Re: Personal Video Database 1.0.2.7 MOD
« Reply #220 on: May 01, 2020, 04:17:45 pm »
IMDB_[EN][HTTPS](series) V 1.4.1.3 script

I adapted the IMDB_ [EN] [HTTPS] 1.4.1.3 script to transfer information for series.

The IMDB_ [EN] [HTTPS] (series) 1.4.1.3 script is based on the IMDB_ [EN] [HTTPS] V 1.4.1.3 script and  works the same as the IMDB_ [EN] [HTTPS] 1.4.1.3 script. In IMDB_ [EN] [HTTPS] (series) 1.4.1.3 script search and download all (same as IMDB_ [EN] [HTTPS] V 1.4.1.3 script) information for series that are present on IMDB series pages.


Only added
IMDB_[EN][HTTPS](series) script and IMDB_[EN][HTTPS](episodes) script

(Hidden) Custom Fields in IMDB_[EN][HTTPS](series) script and IMDB_[EN][HTTPS](episodes) script

Custom fields:
  • IMDB_Series-year

PVD custom field for Type/Comments in Preferences/Movies/Custom Items:
  • IMDB_Series-year (Long Text)

Other custom fields are same are also in IMDB_ [EN] [HTTPS] script.
custom field.

It's attached IMDB_[EN][HTTPS](series) V 1.4.1.3 script.
« Last Edit: May 01, 2020, 05:11:42 pm by Ivek23 »
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: 2736
    • View Profile
Re: Personal Video Database 1.0.2.7 MOD
« Reply #221 on: May 01, 2020, 04:26:26 pm »
IMDB_[EN][HTTPS](episodes) V 1.4.1.3 script

I adapted the IMDB_ [EN] [HTTPS] 1.4.1.3 script to transfer information for episodes.

The IMDB_ [EN] [HTTPS] (episodes) 1.4.1.3 script is based on the IMDB_ [EN] [HTTPS] V 1.4.1.3 script and  works the same as the IMDB_ [EN] [HTTPS] 1.4.1.3 script. In IMDB_ [EN] [HTTPS] (episodes) 1.4.1.3 script (search for series or maybe Bing search for episodes, if an episode title already exists) download all (same as IMDB_ [EN] [HTTPS] V 1.4.1.3 script) information for episodes that are present on IMDB episodes pages.


Only added
IMDB_[EN][HTTPS](series) script and IMDB_[EN][HTTPS](episodes) script

(Hidden) Custom Fields in IMDB_[EN][HTTPS](series) script and IMDB_[EN][HTTPS](episodes) script

Custom fields:
  • IMDB_Series-year

PVD custom field for Type/Comments in Preferences/Movies/Custom Items:
  • IMDB_Series-year (Long Text)

Other custom fields are same are also in IMDB_ [EN] [HTTPS] script.
custom field.

It's attached IMDB_[EN][HTTPS](episodes) V 1.4.1.3 script.
« Last Edit: May 01, 2020, 05:18:21 pm by Ivek23 »
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: 533
    • View Profile
Re: Personal Video Database 1.0.2.7 MOD
« Reply #222 on: May 02, 2020, 11:40:21 am »
Hello Ivek.

Thanks for the update.

What I don't understand is, IMDb series script doesn't import seasons anymore, like it used to, right? Please refer to screenshots how it was 9-10 years ago with old series script, and how it is now. Or is it something bad in my configuration?

Thank you in advance.

Offline Ivek23

  • Global Moderator
  • *****
  • Posts: 2736
    • View Profile
Re: Personal Video Database 1.0.2.7 MOD
« Reply #223 on: May 02, 2020, 05:28:45 pm »
Hello Ivek.

Thanks for the update.

What I don't understand is, IMDb series script doesn't import seasons anymore, like it used to, right? Please refer to screenshots how it was 9-10 years ago with old series script, and how it is now. Or is it something bad in my configuration?

Thank you in advance.

Hey, great!

This was solution for an issue I referred to HERE.

The answer is HERE.
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: 2736
    • View Profile
Re: Personal Video Database 1.0.2.7 MOD
« Reply #224 on: May 02, 2020, 05:38:13 pm »
Here's to help, unless otherwise found in IMDb scripts, also Imdb_simple_Bing_Search, which works both in Personal Video Database 1.0.2.7 MOD and with Proxomitron, or without Proxomitron. It finds the specific address you are looking for and then passes it the url. Once you have the url, the information is passed to you by IMDb scripts in Personal Video Database 1.0.2.7 MOD.

It's attached Imdb_simple_Bing_Search script.
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: 533
    • View Profile
Re: Personal Video Database 1.0.2.7 MOD
« Reply #225 on: May 17, 2020, 12:04:44 am »
A question for Easy.

Is it possible to include something like

Code: [Select]
#NoTrayIcon ; To prevent momentary icon pop-up
run whatever.bat arg1 arg2,,hide

into PVdBDownPage.exe script?

I am asking because PVdBDownPage.exe isn't compiled as invisible, and cmd window flashes every time imdb.com is contacted which loses focus on other windows we use while downloading imdb info. Thanks in advance!

Offline VVV_Easy_Programing

  • Older Power User
  • *****
  • Posts: 199
    • View Profile
Re: Personal Video Database 1.0.2.7 MOD
« Reply #226 on: May 21, 2020, 07:55:31 am »
I remember that I did a lot of tests to avoid this problem. I also tried to get PVdB running and download in background, but without success.
Well, now I have repeated the test with NoTrayIcon and it does not solve it.

My conclusion is that the problem is in PDV: The script procedure "FileExecute" always change focus visibly when calling external program.
I don't know if anyone will have any ideas.

Note: The added executable programs are written in AutoHotKey and the source codes are open and available in the folder  .\PersonalVideoDB\Scripts\_Source_Code. Freedom to improve them.

Offline afrocuban

  • Moderator
  • *****
  • Posts: 533
    • View Profile
Re: Personal Video Database 1.0.2.7 MOD
« Reply #227 on: May 28, 2020, 12:54:15 am »
Thank you for your reply Easy!

This is what I get whent trying to open script  (I am not at all familiar with AHK and scripting in general, but trying to use common sense). Any idea?

Also, could this link be of some help? Sorry if I am too ignorant and you already checked options like this.

Best regards
« Last Edit: May 28, 2020, 01:00:10 am by afrocuban »

Offline afrocuban

  • Moderator
  • *****
  • Posts: 533
    • View Profile
Re: Personal Video Database 1.0.2.7 MOD
« Reply #228 on: October 19, 2020, 12:25:42 am »
Is it only me, or 1.4.1.3 (nor any other IMDb script) doesn't import director(s) anymore?

Best regards

Offline Ivek23

  • Global Moderator
  • *****
  • Posts: 2736
    • View Profile
Re: Personal Video Database 1.0.2.7 MOD
« Reply #229 on: October 19, 2020, 09:11:50 am »
Is it only me, or 1.4.1.3 (nor any other IMDb script) doesn't import director(s) anymore?

Best regards

In general, except for the Cast section, there have been some changes to the source code on the Full Cast & Crew websites. Try IMDB_ [EN] [HTTPS] (afrocuban) script if everything works properly.

IMDB_ [EN] [HTTPS] (afrocuban) 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: 533
    • View Profile
Re: Personal Video Database 1.0.2.7 MOD
« Reply #230 on: October 20, 2020, 07:29:18 pm »
Thank you so much for again prompt response and solution! Is it safe now to forget and delete IMDB_[EN][HTTPS].psf v1.4.1.3? I have tons of scripts and I would like to archive all that are: not-applicable/not-usable/redudant/with-a-minor-set-of-data-comparing-to-this-one.


Best regards,

EDIT: I forgot how to get all the directors for the series' "Director" field (not episode's "Director" field). This script doesn't retrieve that names.
« Last Edit: October 20, 2020, 07:33:22 pm by afrocuban »

Offline Ivek23

  • Global Moderator
  • *****
  • Posts: 2736
    • View Profile
Re: Personal Video Database 1.0.2.7 MOD
« Reply #231 on: October 21, 2020, 07:07:38 am »
Thank you so much for again prompt response and solution! Is it safe now to forget and delete IMDB_[EN][HTTPS].psf v1.4.1.3? I have tons of scripts and I would like to archive all that are: not-applicable/not-usable/redudant/with-a-minor-set-of-data-comparing-to-this-one.

First, I'm wondering if the IMDB_ [EN] [HTTPS] (afrocuban) script is working properly.

Then a new IMDB_ [EN] [HTTPS] script version will follow, only then archive IMDB_ [EN] [HTTPS] .psf v1.4.1.3.

EDIT: I forgot how to get all the directors for the series' "Director" field (not episode's "Director" field). This script doesn't retrieve that names.

I need a little more information on what you had in mind because I don’t have an answer for this at the moment.
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: 533
    • View Profile
Re: Personal Video Database 1.0.2.7 MOD
« Reply #232 on: October 21, 2020, 08:35:46 am »
This is the screenshot of Modern Family series (not episode(s)). We see directors of all episodes there. I can't remember how to get that. Thank you in advance.




Offline afrocuban

  • Moderator
  • *****
  • Posts: 533
    • View Profile
Re: Personal Video Database 1.0.2.7 MOD
« Reply #233 on: October 21, 2020, 08:45:55 pm »

First, I'm wondering if the IMDB_ [EN] [HTTPS] (afrocuban) script is working properly.

It works great for the movies and episodes. It doesn't import directors for the series, though.

Best regards

Offline afrocuban

  • Moderator
  • *****
  • Posts: 533
    • View Profile
Re: Personal Video Database 1.0.2.7 MOD
« Reply #234 on: October 23, 2020, 01:44:46 am »
and it still doesn't import non-Latin (titles in cyrillic, in my case)...

Offline Ivek23

  • Global Moderator
  • *****
  • Posts: 2736
    • View Profile
Re: Personal Video Database 1.0.2.7 MOD
« Reply #235 on: October 23, 2020, 07:59:41 am »
IMDB_ [EN] [HTTPS] V 1.4.1.4 script

I fixed some bugs in the code section for ParsePage_IMDBMovieCREDIT (Full cast and crew section except Cast section).


Quote
CHANGE LOG :
            V 1.4.1.4 (19/10/2020) Ivek23: ParsePage_IMDBMovieCREDIT (Full Cast and Crew section) = Corrected parts of the code.

IMDB_ [EN] [HTTPS] V 1.4.1.4 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: 2736
    • View Profile
Re: Personal Video Database 1.0.2.7 MOD
« Reply #236 on: October 23, 2020, 11:41:22 am »

First, I'm wondering if the IMDB_ [EN] [HTTPS] (afrocuban) script is working properly.

It works great for the movies and episodes. It doesn't import directors for the series, though.

The IMDB_ [EN] [HTTPS] script only downloads the Cast section for the series, so the IMDB_ [EN] (HTTPS] (series) or IMDB_ [EN] [HTTPS] (series) (Miguelh1020) script must be used.
This is the screenshot of Modern Family series (not episode(s)). We see directors of all episodes there. I can't remember how to get that. Thank you in advance.
Now this should be done using scripts for the series.

and it still doesn't import non-Latin (titles in cyrillic, in my case)...

Quote
  CODE_PAGE      =65001 ; //28591=ISO 8859-1 Latin 1; Western European (ISO). Use: 65001=Unicode (UTF-8) | 0=for Autodetect   Autodetect   
.
.
.
Function DownloadPage(URL:AnsiString):String; //BlockOpen
//Returns the URL page text. If error returns empty string
  Var
    i:Integer;
    ScriptPath,WebText:String;
    Begin
    LogMessage(Chr(9)+Chr(9)+'Function DownloadPage BEGIN======================|');
    LogMessage(Chr(9)+Chr(9)+'Global Var-DownloadURL|'+DownloadURL+'|');   
    LogMessage(Chr(9)+Chr(9)+'      Local Var-URL|'+URL+'|');
    ScriptPath:=GetAppPath+'Scripts\';
    //LogMessage(Chr(9)+Chr(9)+'      Local Var-ScriptPath|'+ScriptPath+'|');
    //Delete the ancient dowloaded page file. Needed for wait to curl download included in PowerShell command.
    While FileExists(ScriptPath+BASE_DOWNLOAD_FILE_NO_BOM) Do Begin
         FileExecute('cmd.exe', '/C del "'+ScriptPath+BASE_DOWNLOAD_FILE_NO_BOM+'"');
         LogMessage(Chr(9)+Chr(9)+'      Waiting 1s for delete:'+ScriptPath+BASE_DOWNLOAD_FILE_NO_BOM);
         wait (1000);
    End;
    //Download the URL page.
    LogMessage(Chr(9)+Chr(9)+'      Download with PVdBDownPage in file:|'+ScriptPath+BASE_DOWNLOAD_FILE_NO_BOM+' the information of:|'+URL+'||');
    FileExecute(ScriptPath+'PVdBDownPage.exe', '"'+URL+'" "'+ScriptPath+BASE_DOWNLOAD_FILE_NO_BOM+'"');
    //Wait download finish and exist the downloaded page.
    i:=0;   // INTERNET_TEST_ITERATIONS
    While Not(FileExists(ScriptPath+BASE_DOWNLOAD_FILE_NO_BOM)) Do Begin
         LogMessage(Chr(9)+Chr(9)+'      Waiting 2s for exists of:'+ScriptPath+BASE_DOWNLOAD_FILE_NO_BOM);
         wait (2000);
         i:=i+1;
         If i=INTERNET_TEST_ITERATIONS Then Begin
            if 2=MessageBox('Too many faulty attempts to internet connection.'+Chr(13)+ 'Retry or Cancel?',SCRIPT_NAME,5) then begin
               LogMessage(Chr(9)+Chr(9)+'Function DownloadPage END with NOT INTERNET connection ===============|');
               Result:='';
               Exit;
            End;
            i:=0;
         End;
    End;
    LogMessage(Chr(9)+Chr(9)+'      Now present complete page file: '+ScriptPath+BASE_DOWNLOAD_FILE_NO_BOM);
    WebText:=FileToString(ScriptPath+BASE_DOWNLOAD_FILE_NO_BOM);
    WebText:=ConvertEncoding(WebText, );  //65001 utf-8 Unicode (UTF-8) ---> https://msdn.microsoft.com/en-us/library/dd317756(VS.85).aspxbrary/dd317756(VS.85).aspx
    //LogMessage(Chr(9)+Chr(9)+'      Local Var-WebText|'+WebText+'|'); //Debug statement
    Result:=WebText;

In the script, set from
Quote
CODE_PAGE      =65001 ;
in
Quote
CODE_PAGE      =0 ;
or
Quote
CODE_PAGE      =28595 ;

It might work. You also have a link to the code page below.

https://docs.microsoft.com/en-us/windows/win32/intl/code-page-identifiers?redirectedfrom=MSDN
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: 533
    • View Profile
Re: Personal Video Database 1.0.2.7 MOD
« Reply #237 on: October 23, 2020, 06:47:24 pm »
Thanks Ivek. I will try changing code page, and wil let you know



The IMDB_ [EN] [HTTPS] script only downloads the Cast section for the series, so the IMDB_ [EN] (HTTPS] (series) or IMDB_ [EN] [HTTPS] (series) (Miguelh1020) script must be used.
Now this should be done using scripts for the series.

Unfortunately, not a single IMDb script import directors of the series for me. I tried them all. Does it import directors for you?

Offline afrocuban

  • Moderator
  • *****
  • Posts: 533
    • View Profile
Re: Personal Video Database 1.0.2.7 MOD
« Reply #238 on: October 24, 2020, 09:38:22 am »
28595 works for me to import cyrillic, but then it doesn't work to import Latin. I am absolutely positive that 65001 worked for me in the past. What could went wrong in the meantime, do you have any idea?

Offline Ivek23

  • Global Moderator
  • *****
  • Posts: 2736
    • View Profile
Re: Personal Video Database 1.0.2.7 MOD
« Reply #239 on: October 25, 2020, 08:24:11 am »
IMDB_[EN][HTTPS](series) V 1.4.1.4 script

Same problem with series as it was with movies. I fixed some bugs in the code section for ParsePage_IMDBMovieCREDIT (Full cast and crew section except Cast section).


Quote
CHANGE LOG :
            V 1.4.1.4 (19/10/2020) Ivek23: ParsePage_IMDBMovieCREDIT (Full Cast and Crew section) = Corrected parts of the code.

IMDB_[EN][HTTPS](series) V 1.4.1.4 script is attached.
Ivek23
Win 10 64bit (32bit)   PVD v0.9.9.21, PVD v1.0.2.7, PVD v1.0.2.7 + MOD


 

anything