Author Topic: Alternative  (Read 57553 times)

0 Members and 1 Guest are viewing this topic.

Offline Ivek23

  • Global Moderator
  • *****
  • Posts: 2690
    • View Profile
Ivek23
Win 10 64bit (32bit)   PVD v0.9.9.21, PVD v1.0.2.7, PVD v1.0.2.7 + MOD


Offline VVV_Easy_Programing

  • Older Power User
  • *****
  • Posts: 199
    • View Profile
Re: Alternative
« Reply #21 on: May 15, 2018, 09:08:24 pm »
The Alfa 2 versión:
http://vvveasy.altervista.org/wp-content/uploads/2018/05/PersonalVideoDB_MOD-V.Alfa_.2.zip

A lot of improvements and corrections of yours detected problems (The IMDB script download all pages, the awards page got me nearly become crazy).
Remember run with "portable.bat" that in this test version is with the debug mode set. If you have problems, please post the two files:

PersonalVideoDB\log.txt   and   PersonalVideoDB\Scripts\PVdBDownPage.log

Don't worry if I answer late, I'm decided to finish the PVD_MOD but I have and idea that give a lot of work but it's worth it

PS: Ivek, I just see your message with the search url. Taken note for the next version, sorry.
« Last Edit: May 16, 2018, 11:24:02 am by VVV_Easy_Programing »

Offline Ivek23

  • Global Moderator
  • *****
  • Posts: 2690
    • View Profile
Re: Alternative
« Reply #22 on: May 16, 2018, 05:26:24 pm »
PS: Ivek, I just see your message with the search url. Taken note for the next version, sorry.

No problem, it's okay.
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: 2690
    • View Profile
Re: Alternative
« Reply #23 on: May 16, 2018, 05:32:22 pm »
IMDB_ [EN] [HTTPS] script

Maybe this search url link is better for movies search results.

https://www.imdb.com/search/title?title=Casablanca&view=simple

This url url is not the best way to find results, because it does not find some movie titles. The most suitable is (at least for me, because we find about 99% of movie titles) this url title for the search results below.

http://www.imdb.com/find?q=Casablanca&s=tt

The reason why I prefer to use it is because it quickly finds search results. In any case, it is not in the results display even posters for movies. However, the search result code contains a part of the code for movie posters (
Code: [Select]
curPos  := PosFrom('<img src="', HTML, curPos) + 10;
endPos  := PosFrom('</td> ', HTML, curPos);
Preview := Trim(Copy(HTML, curPos, endPos - curPos));

curPos := PosFrom('<a href="/title/', HTML, curPos);
while curPos > 0 do begin
endPos := PosFrom('?ref_=fn_tt_tt_', HTML, curPos);
URL := Trim(Copy(HTML, curPos+9, endPos - curPos-9));
URL := BASE_URL + URL;

curPos := PosFrom('>', HTML, curPos)+1;
endPos := PosFrom('</td> </tr>', HTML, curPos);
Title := RemoveTags(Trim(Copy(HTML, curPos, endPos - curPos)), false);
// Title   := StringReplace(Title, ') - ', ') ' + #13, true, false, true); 
// Title   := StringReplace(Title, ' - ', '<br />', true, false, true);

curPos  := PosFrom('<img src="', HTML, curPos) + 10;
endPos  := PosFrom('</td> ', HTML, curPos);
Preview := Trim(Copy(HTML, curPos, endPos - curPos));

AddSearchResult(Title, '', '', URL, '');

curPos := PosFrom('<a href="/title/', HTML, curPos);
 end;
), because the search results are working properly.

For the next version of PVD_MOD:

IMDB_ [EN] [HTTPS] script

I recommend that no posters for movies are added to the search results display.
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: 453
    • View Profile
Re: Alternative
« Reply #24 on: May 20, 2018, 10:10:18 pm »
The Alfa 2 versión:
http://vvveasy.altervista.org/wp-content/uploads/2018/05/PersonalVideoDB_MOD-V.Alfa_.2.zip

A lot of improvements and corrections of yours detected problems (The IMDB script download all pages, the awards page got me nearly become crazy).
Remember run with "portable.bat" that in this test version is with the debug mode set. If you have problems, please post the two files:

PersonalVideoDB\log.txt   and   PersonalVideoDB\Scripts\PVdBDownPage.log

Don't worry if I answer late, I'm decided to finish the PVD_MOD but I have and idea that give a lot of work but it's worth it


Dear Easy, thanks for your work! It is truly and sincerely appreciated. Although still no luck for me with IMDB and FA scripts. Still same errors about no internet connection and started of course via portable.bat.

Here are the logs, hopefully they will help you What is funny is that on the status bar I see the message "downloading from portable.bat" while running IMDB script, and "Downloading from FilmAffinity[ES].psf" while running FA script.

Dear Ivek, it doesn+t work neither with your attached scripts.

Logs:

Code: [Select]
(20.05.2018 22:46:34) Compiling script: IMDB_[EN][HTTPS].psf
(20.05.2018 22:46:34) Script compiled successfully: IMDB_[EN][HTTPS].psf
(20.05.2018 22:46:34) Executing script binary
(20.05.2018 22:46:34) Logging in...
(20.05.2018 22:46:34) Function GetDownloadURL BEGIN======================|
(20.05.2018 22:46:34) Global Var-Mode|0|
(20.05.2018 22:46:34) Global Var-DownloadURL||
(20.05.2018 22:46:35)       IMDB URL.
(20.05.2018 22:46:35)       Parse stored information DownloadURL:https://www.imdb.com/title/tt0443649/||
(20.05.2018 22:46:35) Function GetDownloadURL END====================== with Mode=1 Result=C:\PersonalVideoDB_MOD-V.Alfa_.2\PersonalVideoDB\debug.bat|
(20.05.2018 22:46:35) Searching movie information for: 10,000 BC
(20.05.2018 22:46:35) Function ParsePage BEGIN======================|
(20.05.2018 22:46:35) Global Var-Mode|1|
(20.05.2018 22:46:35) Global Var-DownloadURL|https://www.imdb.com/title/tt0443649/|
(20.05.2018 22:46:35) Local Var-URL|http://api.themoviedb.org/3/movie/7840?append_to_response=alternative_titles,credits,keywords,images&api_key=0a4782bd3877917501a2d45e1198f809&language=en|
(20.05.2018 22:46:35)   Begin mode Normal|1|. Getting provider data for MovieID||
(20.05.2018 22:46:35) Function DownloadPage BEGIN======================|
(20.05.2018 22:46:35) Global Var-Mode|1|
(20.05.2018 22:46:35) Global Var-DownloadURL|https://www.imdb.com/title/tt0443649/|
(20.05.2018 22:46:35)       Local Var-URL|https://www.imdb.com/title/tt0443649/|
(20.05.2018 22:46:35)       Download with PVdBDownPage in file:|C:\PersonalVideoDB_MOD-V.Alfa_.2\PersonalVideoDB\Scripts\downpage-UTF8_NO_BOM.htm the information of:|https://www.imdb.com/title/tt0443649/||
(20.05.2018 22:46:35)       Waiting 2s for exists of:C:\PersonalVideoDB_MOD-V.Alfa_.2\PersonalVideoDB\Scripts\downpage-UTF8_NO_BOM.htm
(20.05.2018 22:46:37)       Waiting 2s for exists of:C:\PersonalVideoDB_MOD-V.Alfa_.2\PersonalVideoDB\Scripts\downpage-UTF8_NO_BOM.htm
(20.05.2018 22:46:39)       Waiting 2s for exists of:C:\PersonalVideoDB_MOD-V.Alfa_.2\PersonalVideoDB\Scripts\downpage-UTF8_NO_BOM.htm
(20.05.2018 22:46:41)       Waiting 2s for exists of:C:\PersonalVideoDB_MOD-V.Alfa_.2\PersonalVideoDB\Scripts\downpage-UTF8_NO_BOM.htm
(20.05.2018 22:46:43)       Waiting 2s for exists of:C:\PersonalVideoDB_MOD-V.Alfa_.2\PersonalVideoDB\Scripts\downpage-UTF8_NO_BOM.htm
(20.05.2018 22:46:50) Function DownloadPage END with NOT INTERNET connection ===============|


And the other:

Code: [Select]
20180520224106-PVdBDownPage variables:
Number arguments = 2
       URL=|https://www.imdb.com/search/title?title=10,000+BC&title_type=feature&release_date=,&view=simple|
EscapedURL=|https://www.imdb.com/search/title?title=10,000+BC&title_type=feature&release_date=,&view=simple|
File=|C:\PersonalVideoDB_MOD-V.Alfa_.2\PersonalVideoDB\Scripts\downpage-UTF8_NO_BOM.htm|
WinVersion=|WIN_7|
20180520224127-PVdBDownPage variables:
Number arguments = 2
       URL=|https://www.filmaffinity.com/es/advsearch.php?stext=10,000+BC&stype%5B%5D=title&country=&genre=&fromyear=&toyear=|
EscapedURL=|https://www.filmaffinity.com/es/advsearch.php?stext=10,000+BC&stype%5B%5D=title&country=&genre=&fromyear=&toyear=|
File=|C:\PersonalVideoDB_MOD-V.Alfa_.2\PersonalVideoDB\Scripts\downpage-UTF8_NO_BOM.htm|
WinVersion=|WIN_7|
20180520224139-PVdBDownPage variables:
Number arguments = 2
       URL=|http://www.bing.com/Search?q=site%3Ahttps://www.filmaffinity.com%2010,000+BC+()|
EscapedURL=|http://www.bing.com/Search?q=site%3Ahttps://www.filmaffinity.com%2010,000+BC+()|
File=|C:\PersonalVideoDB_MOD-V.Alfa_.2\PersonalVideoDB\Scripts\downpage-UTF8_NO_BOM.htm|
WinVersion=|WIN_7|
20180520224635-PVdBDownPage variables:
Number arguments = 2
       URL=|https://www.imdb.com/title/tt0443649/|
EscapedURL=|https://www.imdb.com/title/tt0443649/|
File=|C:\PersonalVideoDB_MOD-V.Alfa_.2\PersonalVideoDB\Scripts\downpage-UTF8_NO_BOM.htm|
WinVersion=|WIN_7|
20180520225153-PVdBDownPage variables:
Number arguments = 2
       URL=|https://www.imdb.com/title/tt0443649/|
EscapedURL=|https://www.imdb.com/title/tt0443649/|
File=|C:\PersonalVideoDB_MOD-V.Alfa_.2\PersonalVideoDB\Scripts\downpage-UTF8_NO_BOM.htm|
WinVersion=|WIN_7|
20180520225234-PVdBDownPage variables:
Number arguments = 2
       URL=|https://www.imdb.com/title/tt0443649/|
EscapedURL=|https://www.imdb.com/title/tt0443649/|
File=|C:\PersonalVideoDB_MOD-V.Alfa_.2\PersonalVideoDB\Scripts\downpage-UTF8_NO_BOM.htm|
WinVersion=|WIN_7|
20180520225337-PVdBDownPage variables:
Number arguments = 2
       URL=|https://www.imdb.com/title/tt0443649/|
EscapedURL=|https://www.imdb.com/title/tt0443649/|
File=|C:\PersonalVideoDB_MOD-V.Alfa_.2\PersonalVideoDB\Scripts\downpage-UTF8_NO_BOM.htm|
WinVersion=|WIN_7|
20180520225603-PVdBDownPage variables:
Number arguments = 2
       URL=|https://www.imdb.com/title/tt0443649/|
EscapedURL=|https://www.imdb.com/title/tt0443649/|
File=|C:\PersonalVideoDB_MOD-V.Alfa_.2\PersonalVideoDB\Scripts\downpage-UTF8_NO_BOM.htm|
WinVersion=|WIN_7|
20180520225652-PVdBDownPage variables:
Number arguments = 2
       URL=|https://www.imdb.com/title/tt0443649/|
EscapedURL=|https://www.imdb.com/title/tt0443649/|
File=|C:\PersonalVideoDB_MOD-V.Alfa_.2\PersonalVideoDB\Scripts\downpage-UTF8_NO_BOM.htm|
WinVersion=|WIN_7|
20180520225711-PVdBDownPage variables:
Number arguments = 2
       URL=|https://www.imdb.com/title/tt0443649/|
EscapedURL=|https://www.imdb.com/title/tt0443649/|
File=|C:\PersonalVideoDB_MOD-V.Alfa_.2\PersonalVideoDB\Scripts\downpage-UTF8_NO_BOM.htm|
WinVersion=|WIN_7|
20180520225729-PVdBDownPage variables:
Number arguments = 2
       URL=|https://www.filmaffinity.com/es/advsearch.php?stext=10,000+BC&stype%5B%5D=title&country=&genre=&fromyear=2008&toyear=2008|
EscapedURL=|https://www.filmaffinity.com/es/advsearch.php?stext=10,000+BC&stype%5B%5D=title&country=&genre=&fromyear=2008&toyear=2008|
File=|C:\PersonalVideoDB_MOD-V.Alfa_.2\PersonalVideoDB\Scripts\downpage-UTF8_NO_BOM.htm|
WinVersion=|WIN_7|
20180520225742-PVdBDownPage variables:
Number arguments = 2
       URL=|http://www.bing.com/Search?q=site%3Ahttps://www.filmaffinity.com%2010,000+BC+(2008)|
EscapedURL=|http://www.bing.com/Search?q=site%3Ahttps://www.filmaffinity.com%2010,000+BC+(2008)|
File=|C:\PersonalVideoDB_MOD-V.Alfa_.2\PersonalVideoDB\Scripts\downpage-UTF8_NO_BOM.htm|
WinVersion=|WIN_7|

Kind regards

Offline Ivek23

  • Global Moderator
  • *****
  • Posts: 2690
    • View Profile
Re: Alternative
« Reply #25 on: May 21, 2018, 06:17:41 pm »
Dear Easy, thanks for your work! It is truly and sincerely appreciated. Although still no luck for me with IMDB and FA scripts. Still same errors about no internet connection and started of course via portable.bat.

If you've made a test with Proxomitron or proxy on, then it really does not work.

For me:
Namely, with the movieAffinity [ES] script, it works smoothly on the Win 7 Ultimate 32 bit, while the Imdb script alternately (depending on the movie title) works or does not work. The system works without a proxy method, which I do not even use, except Proxomitron, which, however, is not switched on when I test PVD MOD.

Dear Ivek, it doesn+t work neither with your attached scripts.

Attached Imdb scripts have been added (with a view to possible testing) primarily for the VVV_Easy_Programing member to see what information would be needed to be included in the script and parts of the code for help at writing the Imdb script.
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: 2690
    • View Profile
Re: Alternative
« Reply #26 on: May 21, 2018, 06:36:21 pm »
The Alfa 2 versión:

The good news for this version of Imdb script is that the download code for Imdb awards is right,
which I have been waiting for a long time (I did not find the right way to code it myself) and I have now come to see her, that I can now add it to the usual Imdb Movie (awards) script.

Imdb Movie (awards) script is ready and will soon be added to the forum.

I am extremely grateful for this solution VVV_Easy_Programing member and in doing so I would like to thank for the extraordinary efforts, which he invested in writing the code for downloading Imdb awards.
Ivek23
Win 10 64bit (32bit)   PVD v0.9.9.21, PVD v1.0.2.7, PVD v1.0.2.7 + MOD


Offline VVV_Easy_Programing

  • Older Power User
  • *****
  • Posts: 199
    • View Profile
Re: Alternative
« Reply #27 on: May 22, 2018, 06:50:05 pm »
I see that you can use a big parts of the HTTPS the scripts for your Proxomitron solution: I will change my scripts schema and i'm going to programate in funtions that you can use easily.

BTW see the post 'Script editing with NotePad++':
http://www.videodb.info/forum_en/index.php/topic,4133.msg20546.html#msg20546

beacuse the highlight and the folding is a very good help for the script programmer.
Note: If you can pin in the forum the NotePad post I think it would be good for all people.
« Last Edit: May 22, 2018, 06:51:41 pm by VVV_Easy_Programing »

Offline VVV_Easy_Programing

  • Older Power User
  • *****
  • Posts: 199
    • View Profile
Re: Alternative
« Reply #28 on: May 23, 2018, 09:04:37 pm »
The Alfa 3 version:
http://vvveasy.altervista.org/wp-content/uploads/2018/05/PersonalVideoDB_MOD-V.Alfa_.3.zip

A lot of improvements and corrections of yours detected problems

Remember run with "portable.bat" (that is with the debug mode set in this test version).
If you have problems, please post the two files:
               PersonalVideoDB\log.txt   and   PersonalVideoDB\Scripts\PVdBDownPage.log

Now we are capable of change the script parameters, so I recomend see first the new Script "**** Scripts Configuration ****" (doesn't affect to database)
----------------------------------------------------------------------------------------------------------------
Important: This is a alfa version (even it not arrives beta level). Please is only for test, not mix your personal Database with this version. You may unzip in your desktop and run only in portable mode (portable.bat) without internet proxi.
----------------------------------------------------------------------------------------------------------------
Ivek23: I rewrite the IMDB script for easy Proxomitron adaptation (In the place of call function Download page, you may use the traditional script modes for make PVD download every page in the same script).
Ivek23: Show the posters in SearchList is now a script parameter, use new Script "**** Scripts Configuration ****" to switch. I didn't see the advantage of use 'http://www.imdb.com/find?q=' in the place of 'https://www.imdb.com/search/title?title=' because I get a lot of "false" results. We can analyse this later.
Afrocuban: The FilmAffinity in english is not ready but now you have a script parameter that allows set FilmAffinity rating (or TheMovieDB rating) as user rating, so you have the possibility of three ratings: IMDB, user and other ratting. Three customs fields are setting for save the  votes).
« Last Edit: May 24, 2018, 06:52:45 am by VVV_Easy_Programing »

Offline Ivek23

  • Global Moderator
  • *****
  • Posts: 2690
    • View Profile
Re: Alternative
« Reply #29 on: May 26, 2018, 12:12:03 pm »
Test for PersonalVideoDB_MOD-V.Alfa_.3

FilmAffinity_[ES][HTTPS] and TheMovieDB_[EN][API] script it works ok.

IMDB_ [EN] [HTTPS] script as it is now, very rare cases that it works at all, most often a window appears asking for confirmation, restarting or turning off PVD. However, once I removed all MPAA, AKA, CAST and AWARDS data transfer pages, the situation has been significantly corrected, but there is still a window with the request to confirm, restart or turn off the PVD. There is no download of information for Release Date, Budget, Cumulative Worldwide Gross, Runtime. I add a piece of code before I download the information and after it transfers the information.

Release Date  before
Code: [Select]
    //Get ~rdate~ in contry provider local IP geolocation. See: http://sobizarre-en.blogspot.fr/2014/12/how-to-easily-defeat-imdb-geolocation.html
    curPos:=Pos('<h4 class="inline">Release Date:</h4>',HTML);                                      //WEB_SPECIFIC
    If 0<curPos Then Begin       
       ItemValue:=TextBetWeen(HTML,'<h4 class="inline">Release Date:</h4>','(',false,curPos);  //Strings which opens/closes the data. WEB_SPECIFIC
       AddFieldValueXML('rdate',ItemValue);
       LogMessage('      Get results Release Date:'+ItemValue+'||');
    End;
Release Date  after
Code: [Select]
    //Get ~origlang~ (several values in a comma separated list)
    curPos:=Pos('<h4 class="inline">Language:</h4>',HTML);                                      //WEB_SPECIFIC.
    if 0<curPos then begin       
       ItemValue:=TextBetWeen(HTML,'<h4 class="inline">Language:</h4>','</div>',false,curPos);  //Strings which opens/closes the data. WEB_SPECIFIC
       //ItemValue:=StringReplace(ItemValue,'|',',',True,True,False);                           //Change the separator to comma
       ItemValue:=StringReplace(ItemValue, '            |        ', ', ', true, false, true);
       AddFieldValueXML('origlang',ItemValue);
       LogMessage('      Get results Language:'+ItemValue+'||');
    end;       
    //Get ~rdate~ in contry provider local IP geolocation. See: http://sobizarre-en.blogspot.fr/2014/12/how-to-easily-defeat-imdb-geolocation.html
    curPos:=Pos('<h4 class="inline">Release Date:</h4>',HTML);                                      //WEB_SPECIFIC
    If 0<curPos Then Begin       
       ItemValue:=TextBetWeen(HTML,'<h4 class="inline">Release Date:</h4>','(',false,curPos);  //Strings which opens/closes the data. WEB_SPECIFIC
            ItemValue:=StringReplace(ItemValue,'January','1',true,true,true);
            ItemValue:=StringReplace(ItemValue,'February','2',true,true,true);
            ItemValue:=StringReplace(ItemValue,'March','3',true,true,true);
            ItemValue:=StringReplace(ItemValue,'April','4',true,true,true);
            ItemValue:=StringReplace(ItemValue,'May','5',true,true,true);
            ItemValue:=StringReplace(ItemValue,'June','6',true,true,true);
            ItemValue:=StringReplace(ItemValue,'July','7',true,true,true);
            ItemValue:=StringReplace(ItemValue,'August','8',true,true,true);
            ItemValue:=StringReplace(ItemValue,'September','9',true,true,true);
            ItemValue:=StringReplace(ItemValue,' October ',' 10 ',true,true,true);
            ItemValue:=StringReplace(ItemValue,' November ',' 11 ',true,true,true);
            ItemValue:=StringReplace(ItemValue,' December ',' 12 ',true,true,true);
            //ItemValue:=StringReplace(ItemValue, ' ', '.', true, false, true);
            ItemValue:=StringReplace(ItemValue, ' ', #46, true, false, true);       
       AddFieldValueXML('rdate',ItemValue);
       AddCustomFieldValueByName('Imdb Release Date',ItemValue);
       LogMessage('      Get results Release Date:'+ItemValue+'||');
    End;

Runtime  before
Code: [Select]
    //Get ~lenght~ (User option GET_LENGTH)
    If GET_LENGTH Then Begin
       curPos:=Pos('<h4 class="inline">Runtime:</h4>',HTML);                                      //WEB_SPECIFIC.
       If 0<curPos Then Begin 
          ItemValue:=TextBetWeen(HTML,'<time itemprop="duration" datetime="PT','M">',false,curPos);  //Strings which opens/closes the data. WEB_SPECIFIC
          AddFieldValueXML('lenght',ItemValue);
          LogMessage('      Get result lenght:'+ItemValue+'||');
       End;
    End;
Runtime  after
Code: [Select]
    //Get ~lenght~ (User option GET_LENGTH)
    If GET_LENGTH Then Begin
       curPos:=Pos('<h4 class="inline">Runtime:</h4>',HTML);                                      //WEB_SPECIFIC.
       If 0<curPos Then Begin 
          ItemValue:=TextBetWeen(HTML,'<time itemprop="duration" datetime="PT','M">',false,curPos);  //Strings which opens/closes the data. WEB_SPECIFIC
          AddFieldValueXML('lenght',IntToStr(StrToInt(ItemValue)*60));
          LogMessage('      Get result lenght:'+ItemValue+'||');
       End;
    End;

I have a suggestion to first edit the IMDB_ [EN] [HTTPS] script to download information from the basic IMDB movie pages, but then the rest of the above pages, because this is at least in my estimation the main reason that the complete IMDB_ [EN ] [HTTPS] script, often causes a window to appear with a request to confirm, restart or turn off PVD.

There was also an error in downloading the URL of the address, shown in the code below.
Quote
//Parse return of 'SearchList Movie URL'-----------------------------------------------------------------------
    If (Mode=smSearchList) Then Begin       //The user have choose the link.
        LogMessage('  ParsePage mode smSearchList. Getting DownloadURL from the return of smSearchList');
      DownloadURL:=StringReplace(URL,CHEAT_PREFIX_URL,'',True,False,False);   //Eliminate the CHEAT_PREFIX_URL for get the true movie link
        DownloadURL:=StringReplace(DownloadURL,'http','https',True,True,False); //The direct url needed (no https redirection)
        DownloadURL:=StringReplace(DownloadURL,'httpss','https',True,True,False); //The direct url needed (no https redirection)        
        LogMessage('     Global Var-DownloadURL|'+DownloadURL+'|');
        Mode:=smNormal;
        Result:=prDownload;  //But not exit needed for download the page because is HTTPS
        LogMessage('     With the good movie URL it demand download the movie page');
    End;

When I know more, I will also explain this as I do now.
 
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: 2690
    • View Profile
Re: Alternative
« Reply #30 on: May 27, 2018, 06:24:01 am »
It may be a mistake, but when you want to add something to IMDB_ [EN] [HTTPS] script, then it will appear a window with the request to confirm, restart or turn off the PVD. I've added a change with Notepad ++ as well as when I added the change with Notepad.
Ivek23
Win 10 64bit (32bit)   PVD v0.9.9.21, PVD v1.0.2.7, PVD v1.0.2.7 + MOD


Offline VVV_Easy_Programing

  • Older Power User
  • *****
  • Posts: 199
    • View Profile
Re: Alternative
« Reply #31 on: May 27, 2018, 11:21:53 am »
The Alfa 4 version:
http://vvveasy.altervista.org/wp-content/uploads/2018/05/PersonalVideoDB_MOD-V.Alfa_.4.zip

A lot of improvements and corrections. The basic movie scripts are finish. Before traslations I'm going adapt the people scripts.

Remember run with "portable.bat" (that is with the debug mode set in this test version).
If you have problems, please post the two files:
               PersonalVideoDB\log.txt   and   PersonalVideoDB\Scripts\PVdBDownPage.log

Now we are capable of change the script parameters, so I recomend see first the new Script "**** Scripts Configuration ****" (doesn't affect to database)
----------------------------------------------------------------------------------------------------------------
Important: This is a alfa version (even it not arrives beta level). Please is only for test, not mix your personal Database with this version. You may unzip in your desktop and run only in portable mode (portable.bat) without internet proxi.
----------------------------------------------------------------------------------------------------------------
Great work, Ivek23: I have applied your three code corrections.

Quote
IMDB_ [EN] [HTTPS] script as it is now, very rare cases that it works at all, most often a window appears asking for confirmation, restarting or turning off PVD
That is the "StackOverflow" error window: Normaly it arrives because the script try to get data out of a variable reserved memory. In my experience I have this errors in to cases: 1) A hard code error, for instance, try to read a array with a index out of the limit 2) the web provider database has a exception not managed by the script, for instance, the movie has no title and the scritpt work with it.
Normaly, the first case arrives always and is easy to detect. For the second case, in order to analyse the error, is very important to know the movie that crash the script. You can see the title in the PVD status bar.
Quote
It may be a mistake, but when you want to add something to IMDB_ [EN] [HTTPS] script, then it will appear a window with the request to confirm, restart or turn off the PVD. I've added a change with Notepad ++ as well as when I added the change with Notepad.
I think that this appears because those version runs in debug mode. You can go to Help and must be a Log option to see the script runs. I didn't appear to me but I always recompile the scripts in the Log window after a editor modification and before to run.
May be other source of this: the new script "**** Scripts Configuration ****" must re-write all the listed scripts when you save. So the editors detects the change of text (and if you re-read you lost the editor changes). Normaly , the user don't have the script open with an editor.



« Last Edit: May 27, 2018, 07:21:12 pm by VVV_Easy_Programing »

Offline Ivek23

  • Global Moderator
  • *****
  • Posts: 2690
    • View Profile
Re: Alternative
« Reply #32 on: May 27, 2018, 04:46:46 pm »
The Alfa 4 version:

Now, after some tests, a bit better, we will see when there are more tests.

I have LogMessage a small beauty note, which is most unpleasant for url addresses, because on a web site designated url address then the browser can not find. The LogMessage code is supposed to be the one below for the case.

Quote
LogMessage('      Get results Release Date:'+ItemValue+' ||');
Ivek23
Win 10 64bit (32bit)   PVD v0.9.9.21, PVD v1.0.2.7, PVD v1.0.2.7 + MOD


Offline VVV_Easy_Programing

  • Older Power User
  • *****
  • Posts: 199
    • View Profile
Re: Alternative
« Reply #33 on: May 27, 2018, 07:20:37 pm »
I don't understand very well, the english is a "universal" language but not easy  ;D.
Can you write me the script and the line number?

Offline afrocuban

  • Moderator
  • *****
  • Posts: 453
    • View Profile
Re: Alternative
« Reply #34 on: May 28, 2018, 01:57:45 am »
The Alfa 4 version:

Using again without Proxomitron (never used it with Easy's MODs) and with portable.bat

TheMovieDB script works smooth.

FilmaAffinity and Imdb scripts still doesn't work - same errors as posted above in PersonalVideoDB\log.txt and PersonalVideoDB\Scripts\PVdBDownPage.log.

On a second ("clean") laptop FA and Imdb produces PVD to crash.

If you still need me to test PVD please let me know.

Best regards
« Last Edit: May 28, 2018, 02:03:02 am by afrocuban »

Offline Ivek23

  • Global Moderator
  • *****
  • Posts: 2690
    • View Profile
Re: Alternative
« Reply #35 on: May 28, 2018, 05:12:49 am »
The Alfa 4 version:

IMDB_ [EN] [HTTPS] script


I don't understand very well, the english is a "universal" language but not easy  ;D.
Can you write me the script and the line number?
Quote
LogMessage('      Get results Release Date:'+ItemValue+' ||');

I thought this in IMDB_ [EN] [HTTPS] script to fix it or remove it, because in the log file, then the URL address is such.

Quote
(27.5.2018 22:52:26) Compiling script: IMDB_[EN][HTTPS].psf
(27.5.2018 22:52:26) Script compiled successfully: IMDB_[EN][HTTPS].psf
[Warning] (1110:47): "and True" is not needed
(27.5.2018 22:52:26) Executing script binary
(27.5.2018 22:52:26) Logging in...
(27.5.2018 22:52:26) Function GetDownloadURL BEGIN======================|
(27.5.2018 22:52:26) Global Var-Mode|0|
(27.5.2018 22:52:26) Global Var-DownloadURL||
(27.5.2018 22:52:26)       No IMDB URL.
(27.5.2018 22:52:26) Function GetDownloadURL END====================== with Mode=0 Result=D:\MyTestPVD\PersonalVideoDB_MOD\PersonalVideoDB2\portable.bat|
(27.5.2018 22:52:26) Searching movie information for: 18-Year-Old Virgin
(27.5.2018 22:52:26) Function ParsePage BEGIN======================|
(27.5.2018 22:52:26) Global Var-Mode|0|
(27.5.2018 22:52:26) Global Var-DownloadURL||
(27.5.2018 22:52:26) Local Var-URL| http://ia.media-imdb.com/images/M/MV5BMjA1MTI3ODEwNF5BMl5BanBnXkFtZTcwOTA4NDUyMQ@@.jpg|
(27.5.2018 22:52:27)   ParsePage smSearch|0|. Searching DownloadURL for MovieTitle |18-Year-Old Virgin| MovieYear||
(27.5.2018 22:52:27)       Searching in Provider:|https://www.imdb.com/search/title?title=18-Year-Old+Virgin&title_type=feature&release_date=,&view=simple||
(27.5.2018 22:52:27) Function DownloadPage BEGIN======================|
(27.5.2018 22:52:27) Global Var-DownloadURL|https://www.imdb.com/search/title?title=18-Year-Old+Virgin&title_type=feature&release_date=,&view=simple|
(27.5.2018 22:52:27)    Local Var-URL| https://www.imdb.com/search/title?title=18-Year-Old+Virgin&title_type=feature&release_date=,&view=simple|
(27.5.2018 22:52:27)       Waiting 1s for delete:D:\MyTestPVD\PersonalVideoDB_MOD\PersonalVideoDB2\Scripts\downpage-UTF8_NO_BOM.htm
(27.5.2018 22:52:28)       Download with PVdBDownPage in file:|D:\MyTestPVD\PersonalVideoDB_MOD\PersonalVideoDB2\Scripts\downpage-UTF8_NO_BOM.htm the information of:|https://www.imdb.com/search/title?title=18-Year-Old+Virgin&title_type=feature&release_date=,&view=simple||
(27.5.2018 22:52:28)       Waiting 2s for exists of:D:\MyTestPVD\PersonalVideoDB_MOD\PersonalVideoDB2\Scripts\downpage-UTF8_NO_BOM.htm
(27.5.2018 22:52:30)       Now present file: D:\MyTestPVD\PersonalVideoDB_MOD\PersonalVideoDB2\Scripts\downpage-UTF8_NO_BOM.htm
(27.5.2018 22:52:30)       Now present complete page file: D:\MyTestPVD\PersonalVideoDB_MOD\PersonalVideoDB2\Scripts\downpage-UTF8_NO_BOM.htm
(27.5.2018 22:52:30) Function DownloadPage END======================|
(27.5.2018 22:52:30) Function ParsePage_IMDBSearchTitle BEGIN======================|
(27.5.2018 22:52:30) Global Var-Mode|0|
(27.5.2018 22:52:30) Global Var-DownloadURL|https://www.imdb.com/search/title?title=18-Year-Old+Virgin&title_type=feature&release_date=,&view=simple|
(27.5.2018 22:52:30)         No Movies results
(27.5.2018 22:52:30) Function ParsePage_IMDBSearchTitle END=====================||
(27.5.2018 22:52:30)         Not results or Redirection in Provider search, try with Bing
(27.5.2018 22:52:30)       Searching in Bing:| http://www.bing.com/Search?q=18-Year-Old+Virgin%20+()+site%3Ahttps://www.imdb.com/title/||
(27.5.2018 22:52:30) Function DownloadPage BEGIN======================|
(27.5.2018 22:52:30) Global Var-DownloadURL|http://www.bing.com/Search?q=18-Year-Old+Virgin%20+()+site%3Ahttps://www.imdb.com/title/|
(27.5.2018 22:52:30)    Local Var-URL| http://www.bing.com/Search?q=18-Year-Old+Virgin%20+()+site%3Ahttps://www.imdb.com/title/|
(27.5.2018 22:52:30)       Waiting 1s for delete:D:\MyTestPVD\PersonalVideoDB_MOD\PersonalVideoDB2\Scripts\downpage-UTF8_NO_BOM.htm
(27.5.2018 22:52:31)       Download with PVdBDownPage in file:|D:\MyTestPVD\PersonalVideoDB_MOD\PersonalVideoDB2\Scripts\downpage-UTF8_NO_BOM.htm the information of:|http://www.bing.com/Search?q=18-Year-Old+Virgin%20+()+site%3Ahttps://www.imdb.com/title/||
(27.5.2018 22:52:31)       Waiting 2s for exists of:D:\MyTestPVD\PersonalVideoDB_MOD\PersonalVideoDB2\Scripts\downpage-UTF8_NO_BOM.htm
(27.5.2018 22:52:33)       Now present file: D:\MyTestPVD\PersonalVideoDB_MOD\PersonalVideoDB2\Scripts\downpage-UTF8_NO_BOM.htm
(27.5.2018 22:52:34)       Now present complete page file: D:\MyTestPVD\PersonalVideoDB_MOD\PersonalVideoDB2\Scripts\downpage-UTF8_NO_BOM.htm
(27.5.2018 22:52:34) Function DownloadPage END======================|
(27.5.2018 22:52:34) Function ParsePage_BingSearch BEGIN======================|
(27.5.2018 22:52:34) Global Var-Mode|0|
(27.5.2018 22:52:34) Global Var-DownloadURL|http://www.bing.com/Search?q=18-Year-Old+Virgin%20+()+site%3Ahttps://www.imdb.com/title/|
(27.5.2018 22:52:34)       BASE_URL_PRE results detectes.
(27.5.2018 22:52:34)     Parsing search movie results in 44 ...
(27.5.2018 22:52:34)       Parse Results URL:https://www.imdb.com/title/tt1294969/||
(27.5.2018 22:52:34)       Parse Results Title:18-Year-Old Virgin||
(27.5.2018 22:52:34)       Parse Results in Year:Video 2009||
(27.5.2018 22:52:34)     Parsing search movie results in 1116 ...
(27.5.2018 22:52:34)       Parse Results URL:https://www.imdb.com/title/tt1294969/||
(27.5.2018 22:52:34)       Parse Results Title:18-Year-Old Virgin||
(27.5.2018 22:52:34)       Parse Results in Year:Video 2009||
(27.5.2018 22:52:34)     Parsing search movie results in 1736 ...
(27.5.2018 22:52:34)       Parse Results URL:https://www.imdb.com/title/tt1294969/||
(27.5.2018 22:52:34)       Parse Results Title:18-Year-Old Virgin||
(27.5.2018 22:52:34)       Parse Results in Year:Video 2009||
(27.5.2018 22:52:34)     Parsing search movie results in 2324 ...
(27.5.2018 22:52:34)       Parse Results URL:https://www.imdb.com/title/tt1294969/||
(27.5.2018 22:52:34)       Parse Results Title:18-Year-Old Virgin||
(27.5.2018 22:52:34)       Parse Results in Year:Video 2009||
(27.5.2018 22:52:34)     Parsing search movie results in 2921 ...
(27.5.2018 22:52:34)       Parse Results URL:https://www.imdb.com/title/tt1294969/||
(27.5.2018 22:52:34)       Parse Results Title:18-Year-Old Virgin||
(27.5.2018 22:52:34)       Parse Results in Year:2009||
(27.5.2018 22:52:34)     Parsing search movie results in 3498 ...
(27.5.2018 22:52:34)       Parse Results URL:https://www.imdb.com/title/tt1294969/||
(27.5.2018 22:52:34)     Parsing search movie results in 4141 ...
(27.5.2018 22:52:34)       Parse Results URL:https://www.imdb.com/title/tt1294969/||
(27.5.2018 22:52:34)       Parse Results Title:18-Year-Old Virgin||
(27.5.2018 22:52:34)       Parse Results in Year:Video 2009||
(27.5.2018 22:52:34)     Parsing search movie results in 4777 ...
(27.5.2018 22:52:34)       Parse Results URL:https://www.imdb.com/title/tt1294969/||
(27.5.2018 22:52:34)       Parse Results Title:18-Year-Old Virgin||
(27.5.2018 22:52:34)       Parse Results in Year:Video 2009||
(27.5.2018 22:52:34)     Parsing search movie results in 5340 ...
(27.5.2018 22:52:34)       Parse Results URL:https://www.imdb.com/title/tt1294969/||
(27.5.2018 22:52:34)       Parse Results Title:18-Year-Old Virgin||
(27.5.2018 22:52:34)       Parse Results in Year:2009||
(27.5.2018 22:52:34)     Parsing search movie results in 5841 ...
(27.5.2018 22:52:34)       Parse Results URL:https://www.imdb.com/title/tt00001294969/||
(27.5.2018 22:52:34)       Parse Results Title:18-Year-Old Virgin||
(27.5.2018 22:52:34)       Parse Results in Year:Video 2009||
(27.5.2018 22:52:34)       After parsing Bing search Movies go to choose List Results
(27.5.2018 22:52:34) Function ParsePage_BingSearch END=====================||
(27.5.2018 22:52:34) Function ParsePage smSearchList END======================|
(27.5.2018 22:52:39) GET: http://www.jsontest.com/ https://www.imdb.com/title/tt1294969/
(27.5.2018 22:52:40) Function ParsePage BEGIN======================|
(27.5.2018 22:52:40) Global Var-Mode|8|
(27.5.2018 22:52:40) Global Var-DownloadURL|http://www.bing.com/Search?q=18-Year-Old+Virgin%20+()+site%3Ahttps://www.imdb.com/title/|
(27.5.2018 22:52:40) Local Var-URL| http://www.jsontest.com/ https://www.imdb.com/title/tt1294969/|
(27.5.2018 22:52:40)   ParsePage mode smSearchList. Getting DownloadURL from the return of smSearchList
(27.5.2018 22:52:40)      Global Var-DownloadURL| httpss://www.imdb.com/title/tt1294969/|
(27.5.2018 22:52:40)      With the good movie URL it demand download the movie page
(27.5.2018 22:52:40)   ParsePage mode smNormal|1|. Getting provider data for MovieID||
(27.5.2018 22:52:40)       Get result url:httpss://www.imdb.com/title/tt1294969/||
(27.5.2018 22:52:40) Function DownloadPage BEGIN======================|
(27.5.2018 22:52:40) Global Var-DownloadURL|httpss://www.imdb.com/title/tt1294969/|
(27.5.2018 22:52:40)    Local Var-URL| httpss://www.imdb.com/title/tt1294969/|
(27.5.2018 22:52:40)       Waiting 1s for delete:D:\MyTestPVD\PersonalVideoDB_MOD\PersonalVideoDB2\Scripts\downpage-UTF8_NO_BOM.htm
(27.5.2018 22:52:41)       Download with PVdBDownPage in file:|D:\MyTestPVD\PersonalVideoDB_MOD\PersonalVideoDB2\Scripts\downpage-UTF8_NO_BOM.htm the information of:|httpss://www.imdb.com/title/tt1294969/ ||
(27.5.2018 22:52:41)       Waiting 2s for exists of:D:\MyTestPVD\PersonalVideoDB_MOD\PersonalVideoDB2\Scripts\downpage-UTF8_NO_BOM.htm
(27.5.2018 22:52:43)       Waiting 2s for exists of:D:\MyTestPVD\PersonalVideoDB_MOD\PersonalVideoDB2\Scripts\downpage-UTF8_NO_BOM.htm
(27.5.2018 22:52:45)       Waiting 2s for exists of:D:\MyTestPVD\PersonalVideoDB_MOD\PersonalVideoDB2\Scripts\downpage-UTF8_NO_BOM.htm
(27.5.2018 22:52:47)       Waiting 2s for exists of:D:\MyTestPVD\PersonalVideoDB_MOD\PersonalVideoDB2\Scripts\downpage-UTF8_NO_BOM.htm
(27.5.2018 22:52:49)       Waiting 2s for exists of:D:\MyTestPVD\PersonalVideoDB_MOD\PersonalVideoDB2\Scripts\downpage-UTF8_NO_BOM.htm
(27.5.2018 22:52:55)       Waiting 2s for exists of:D:\MyTestPVD\PersonalVideoDB_MOD\PersonalVideoDB2\Scripts\downpage-UTF8_NO_BOM.htm
(27.5.2018 22:52:57)       Waiting 2s for exists of:D:\MyTestPVD\PersonalVideoDB_MOD\PersonalVideoDB2\Scripts\downpage-UTF8_NO_BOM.htm
(27.5.2018 22:52:59)       Waiting 2s for exists of:D:\MyTestPVD\PersonalVideoDB_MOD\PersonalVideoDB2\Scripts\downpage-UTF8_NO_BOM.htm
(27.5.2018 22:53:01)       Waiting 2s for exists of:D:\MyTestPVD\PersonalVideoDB_MOD\PersonalVideoDB2\Scripts\downpage-UTF8_NO_BOM.htm
(27.5.2018 22:53:03)       Waiting 2s for exists of:D:\MyTestPVD\PersonalVideoDB_MOD\PersonalVideoDB2\Scripts\downpage-UTF8_NO_BOM.htm
(27.5.2018 22:53:07) Function DownloadPage END with NOT INTERNET connection ===============|
(27.5.2018 22:53:07) Function ParsePage_IMDBMovieBASE BEGIN======================|
(27.5.2018 22:53:07) Function ParsePage_IMDBMovieBASE END=====================||
(27.5.2018 22:53:07) Function DownloadPage BEGIN======================|
(27.5.2018 22:53:07) Global Var-DownloadURL|https://www.imdb.com/title//releaseinfo?ref_=tt_dt_dt#akas|
(27.5.2018 22:53:07)    Local Var-URL| https://www.imdb.com/title//releaseinfo?ref_=tt_dt_dt#akas |
(27.5.2018 22:53:07)       Download with PVdBDownPage in file:|D:\MyTestPVD\PersonalVideoDB_MOD\PersonalVideoDB2\Scripts\downpage-UTF8_NO_BOM.htm the information of:|https://www.imdb.com/title//releaseinfo?ref_=tt_dt_dt#akas||
(27.5.2018 22:53:07)       Waiting 2s for exists of:D:\MyTestPVD\PersonalVideoDB_MOD\PersonalVideoDB2\Scripts\downpage-UTF8_NO_BOM.htm
(27.5.2018 22:53:09)       Now present file: D:\MyTestPVD\PersonalVideoDB_MOD\PersonalVideoDB2\Scripts\downpage-UTF8_NO_BOM.htm
(27.5.2018 22:53:09)       Now present complete page file: D:\MyTestPVD\PersonalVideoDB_MOD\PersonalVideoDB2\Scripts\downpage-UTF8_NO_BOM.htm
(27.5.2018 22:53:09) Function DownloadPage END======================|
(27.5.2018 22:53:09) Function ParsePage_IMDBMovieAKA BEGIN=====================||
(27.5.2018 22:53:09)       Get results aka: ||
(27.5.2018 22:53:09) Function ParsePage_IMDBMovieAKA END=====================||
(27.5.2018 22:53:09) Function DownloadPage BEGIN======================|
(27.5.2018 22:53:09) Global Var-DownloadURL|https://www.imdb.com/title//fullcredits?ref_=tt_cl_sm#cast|
(27.5.2018 22:53:09)    Local Var-URL| https://www.imdb.com/title//fullcredits?ref_=tt_cl_sm#cast|
(27.5.2018 22:53:09)       Waiting 1s for delete:D:\MyTestPVD\PersonalVideoDB_MOD\PersonalVideoDB2\Scripts\downpage-UTF8_NO_BOM.htm
(27.5.2018 22:53:10)       Download with PVdBDownPage in file:|D:\MyTestPVD\PersonalVideoDB_MOD\PersonalVideoDB2\Scripts\downpage-UTF8_NO_BOM.htm the information of:|https://www.imdb.com/title//fullcredits?ref_=tt_cl_sm#cast||
(27.5.2018 22:53:10)       Waiting 2s for exists of:D:\MyTestPVD\PersonalVideoDB_MOD\PersonalVideoDB2\Scripts\downpage-UTF8_NO_BOM.htm
(27.5.2018 22:53:12)       Now present file: D:\MyTestPVD\PersonalVideoDB_MOD\PersonalVideoDB2\Scripts\downpage-UTF8_NO_BOM.htm
(27.5.2018 22:53:12)       Now present complete page file: D:\MyTestPVD\PersonalVideoDB_MOD\PersonalVideoDB2\Scripts\downpage-UTF8_NO_BOM.htm
(27.5.2018 22:53:12) Function DownloadPage END======================|
(27.5.2018 22:53:12) Function ParsePage_IMDBMovieCREDIT BEGIN=====================||
(27.5.2018 22:53:12) Function ParsePage_IMDBMovieCREDIT END=====================||
(27.5.2018 22:53:12) Function DownloadPage BEGIN======================|
(27.5.2018 22:53:12) Global Var-DownloadURL|https://www.imdb.com/title//awards?ref_=tt_awd|
(27.5.2018 22:53:12)    Local Var-URL| https://www.imdb.com/title//awards?ref_=tt_awd|
(27.5.2018 22:53:12)       Waiting 1s for delete:D:\MyTestPVD\PersonalVideoDB_MOD\PersonalVideoDB2\Scripts\downpage-UTF8_NO_BOM.htm
(27.5.2018 22:53:13)       Download with PVdBDownPage in file:|D:\MyTestPVD\PersonalVideoDB_MOD\PersonalVideoDB2\Scripts\downpage-UTF8_NO_BOM.htm the information of:|https://www.imdb.com/title//awards?ref_=tt_awd ||
(27.5.2018 22:53:13)       Waiting 2s for exists of:D:\MyTestPVD\PersonalVideoDB_MOD\PersonalVideoDB2\Scripts\downpage-UTF8_NO_BOM.htm
(27.5.2018 22:53:15)       Now present file: D:\MyTestPVD\PersonalVideoDB_MOD\PersonalVideoDB2\Scripts\downpage-UTF8_NO_BOM.htm
(27.5.2018 22:53:15)       Now present complete page file: D:\MyTestPVD\PersonalVideoDB_MOD\PersonalVideoDB2\Scripts\downpage-UTF8_NO_BOM.htm
(27.5.2018 22:53:15) Function DownloadPage END======================|
(27.5.2018 22:53:15) Function ParsePage_IMDBMovieAWARDS BEGIN=====================||
(27.5.2018 22:53:15) Function ParsePage_IMDBMovieAWARDS END=====================||
(27.5.2018 22:53:15) Function DownloadPage BEGIN======================|
(27.5.2018 22:53:15) Global Var-DownloadURL|http://www.imdb.com/title//parentalguide?ref_=tt_stry_pg#certification|
(27.5.2018 22:53:15)    Local Var-URL| http://www.imdb.com/title//parentalguide?ref_=tt_stry_pg#certification |
(27.5.2018 22:53:15)       Waiting 1s for delete:D:\MyTestPVD\PersonalVideoDB_MOD\PersonalVideoDB2\Scripts\downpage-UTF8_NO_BOM.htm
(27.5.2018 22:53:16)       Download with PVdBDownPage in file:|D:\MyTestPVD\PersonalVideoDB_MOD\PersonalVideoDB2\Scripts\downpage-UTF8_NO_BOM.htm the information of:|http://www.imdb.com/title//parentalguide?ref_=tt_stry_pg#certification||
(27.5.2018 22:53:16)       Waiting 2s for exists of:D:\MyTestPVD\PersonalVideoDB_MOD\PersonalVideoDB2\Scripts\downpage-UTF8_NO_BOM.htm
(27.5.2018 22:53:18)       Now present file: D:\MyTestPVD\PersonalVideoDB_MOD\PersonalVideoDB2\Scripts\downpage-UTF8_NO_BOM.htm
(27.5.2018 22:53:18)       Now present complete page file: D:\MyTestPVD\PersonalVideoDB_MOD\PersonalVideoDB2\Scripts\downpage-UTF8_NO_BOM.htm
(27.5.2018 22:53:18) Function DownloadPage END======================|
(27.5.2018 22:53:18) Function ParsePage_IMDBMovieMPAA BEGIN=====================||
(27.5.2018 22:53:18)       MPAA.USA.Corrected:||
(27.5.2018 22:53:18)       Get result MPAA=||
(27.5.2018 22:53:18) Function ParsePage_IMDBMovieMPAA END=====================||
(27.5.2018 22:53:18)     Provider data info retreived Ok in 2018-05-27 22:53:18|
(27.5.2018 22:53:18) Function ParsePage NORMAL END======================|

Then this happens when you want to verify the url address.
I have LogMessage a small beauty note, which is most unpleasant for url addresses, because on a web site designated url address then the browser can not find. The LogMessage code is supposed to be the one below for the case.

There is still this error in IMDB_ [EN] [HTTPS] script, which needs to be resolved when the script using the Bing search then passes the URL address.
Quote
There was also an error in downloading the URL of the address, shown in the code below.
Quote
//Parse return of 'SearchList Movie URL'-----------------------------------------------------------------------
    If (Mode=smSearchList) Then Begin       //The user have choose the link.
        LogMessage('  ParsePage mode smSearchList. Getting DownloadURL from the return of smSearchList');
      DownloadURL:=StringReplace(URL,CHEAT_PREFIX_URL,'',True,False,False);   //Eliminate the CHEAT_PREFIX_URL for get the true movie link
        DownloadURL:=StringReplace(DownloadURL,'http','https',True,True,False); //The direct url needed (no https redirection)
        DownloadURL:=StringReplace(DownloadURL,'httpss','https',True,True,False); //The direct url needed (no https redirection)        
        LogMessage('     Global Var-DownloadURL|'+DownloadURL+'|');
        Mode:=smNormal;
        Result:=prDownload;  //But not exit needed for download the page because is HTTPS
        LogMessage('     With the good movie URL it demand download the movie page');
    End;

This is an example of the 18-year-old Virgin movie title, the displays such a url address.

httpss://www.imdb.com/title/tt1294969/

« Last Edit: May 28, 2018, 12:30:11 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: 2690
    • View Profile
Re: Alternative
« Reply #36 on: May 28, 2018, 07:31:15 pm »
The Alfa 4 version:

IMDB_ [EN] [HTTPS] script


My version of IMDB_ [EN] [HTTPS] script, which was supposed to work, has added some additional information for Sound Mix, Color, Aspect Ratio, Gross USA and Language.
 
I fixed the code for Runtime.
Code: [Select]
    //Get ~lenght~ (User option GET_LENGTH)
    //If GET_LENGTH Then Begin
       curPos:=Pos('<h4 class="inline">Runtime:</h4>',HTML);                                      //WEB_SPECIFIC.
       If 0<curPos Then Begin 
          //ItemValue:=TextBetWeen(HTML,'<time itemprop="duration" datetime="PT','M">',false,curPos);  //Strings which opens/closes the data. WEB_SPECIFIC
          ItemValue:=TextBetWeen(HTML,'M">',' min</time>',false,curPos);  //Strings which opens/closes the data. WEB_SPECIFIC
          //AddFieldValueXML('lenght',IntToStr(StrToInt(ItemValue)*60));
          AddFieldValue(mfDuration,ItemValue);
          AddCustomFieldValueByName('IMDB_Run Time',ItemValue);
          LogMessage('      Get result lenght:'+ItemValue+'||');
       End;
    //End;

Script has been added.
Ivek23
Win 10 64bit (32bit)   PVD v0.9.9.21, PVD v1.0.2.7, PVD v1.0.2.7 + MOD


Offline VVV_Easy_Programing

  • Older Power User
  • *****
  • Posts: 199
    • View Profile
Re: Alternative
« Reply #37 on: May 28, 2018, 08:37:25 pm »
The Alfa 5 version:
http://vvveasy.altervista.org/wp-content/uploads/2018/05/PersonalVideoDB_MOD-V.Alfa_.5.zip

Corrected the error of httpss (see below). The basic movie scripts are finish. Before traslations I'm going adapt the people scripts.

Remember run with "portable.bat" (that is with the debug mode set in this test version).
If you have problems, please post the two files:
               PersonalVideoDB\log.txt   and   PersonalVideoDB\Scripts\PVdBDownPage.log

Now we are capable of change the script parameters, so I recomend see first the new Script "**** Scripts Configuration ****" (doesn't affect to database)
----------------------------------------------------------------------------------------------------------------
Important: This is a alfa version (even it not arrives beta level). Please is only for test, not mix your personal Database with this version. You may unzip in your desktop and run only in portable mode (portable.bat) without internet proxi.
----------------------------------------------------------------------------------------------------------------
Ivek23: The hint to correct de httpss problema is just in the line over your correction:
Quote
DownloadURL:=StringReplace(DownloadURL,'http','https',True,True,False); //The direct url needed (no https redirection)
It works for http:// url's but in the https:// url's you get httpss://. This happens in other parts. I changed the code including the ':'
DownloadURL:=StringReplace(DownloadURL,'http:','https:',True,True,False); //The direct url needed (no https redirection).
Ivek23:
Quote
My version of IMDB_ [EN] [HTTPS] script, which was supposed to work, has added some additional information for Sound Mix, Color, Aspect Ratio, Gross USA and Language.
Let me think that. There are several solutions:
1) Expand the GET_LENGHT option to this other infos (for the users that don't want the info of the "fisical" own copy of the movie)
2) Create new customs fields: I don't like this for a basic MOD versión because is a very particular use.
Personaly, I prefer the first option. I'll do after the people scripts.


afrocuban:
The programa detectes well your Windows "WIN_7" (the same as Ivek) but it seems that curl don't work well in yours computer.
In order to verify curl, can you run in Script folder with the cmd window (the MS-DOS window) the next command:

curl.exe -o downpage.htm https://www.imdb.com/title/tt1294969/

You should see that the page is downloaded and saved in the file "downpage.htm"
Other thing, can you post the path of the Script folder when you do the PVD MOD test? is in order to detect if there are any char (espace, language, etc) that provoque the error.


« Last Edit: May 29, 2018, 06:15:07 pm by VVV_Easy_Programing »

Offline afrocuban

  • Moderator
  • *****
  • Posts: 453
    • View Profile
Re: Alternative
« Reply #38 on: May 29, 2018, 09:13:06 pm »
The Alfa 5 version:

afrocuban:
The programa detectes well your Windows "WIN_7" (the same as Ivek) but it seems that curl don't work well in yours computer.
In order to verify curl, can you run in Script folder with the cmd window (the MS-DOS window) the next command:

curl.exe -o downpage.htm https://www.imdb.com/title/tt1294969/

You should see that the page is downloaded and saved in the file "downpage.htm"


Dear Easy

As you asked, I verified that curl is working with no problems from the command line (checked with ConEMUx64 as admin as well as in regular cmd.exe as user). downpage.htm downloaded perfectly, so curl is working, right?


Other thing, can you post the path of the Script folder when you do the PVD MOD test? is in order to detect if there are any char (espace, language, etc) that provoque the error.

Testing location was D:\Desktop\Poster\PVD MOd\PersonalVideoDB\Scripts. So, there is a space in "PVD MoD" folder name.

That is why I tested PVD in C:\PersonalVideoDB\

The result is somewhat better: TheMoveDB works flawless again, FA imports data, and FA New Releases and IMDB crash PVD. IMDB finds the movie, but crashes PVD when trying to import data. Strange thing that in one trial http://www.jsontest.com/ was imported as movie url.

So basically, it seems that the MOD doesn't support spaces in folder names, and still IMDB script from C:\PersonalVideoDB\Scripts folder (without spaces) still not working for me.

Best regards and thank you so much for your hard work.
« Last Edit: May 29, 2018, 09:43:52 pm by afrocuban »

Offline VVV_Easy_Programing

  • Older Power User
  • *****
  • Posts: 199
    • View Profile
Re: Alternative
« Reply #39 on: May 30, 2018, 08:17:25 pm »
The Alfa 6 version:
http://vvveasy.altervista.org/wp-content/uploads/2018/05/PersonalVideoDB_MOD-V.Alfa_.6.zip

Corrected the error of spaces in PVD path and others littles improvements. TheMovieDB People script included.

Remember run with "portable.bat" (that is with the debug mode set in this test version).
We entry in the script debug so: If you have problems, please is very important the name of the movie and attach the file: PersonalVideoDB\log.txt   

Now we are capable of change the script parameters, so I recomend see first the new Script "**** Scripts Configuration ****" (doesn't affect to database)
----------------------------------------------------------------------------------------------------------------
Important: This is a alfa version (even it not arrives beta level). Please is only for test, not mix your personal Database with this version. You may unzip in your desktop and run only in portable mode (portable.bat) without internet proxi.
----------------------------------------------------------------------------------------------------------------

afrocuban:
I think I have corrected the problem with the spaces in the PVD path, so if it works for you we can pass to Beta version.

 

anything