Personal Video Database

English => Talk => Topic started by: Majstr on April 23, 2018, 01:51:31 pm

Title: Alternative
Post by: Majstr on April 23, 2018, 01:51:31 pm
On the matter of fact that this program is not developing any more and all the plugins stopped working I am trying to find good alternative.
Do you have any suggestions?
Title: Re: Alternative
Post by: afrocuban on May 08, 2018, 11:33:48 pm
Unfortunately, we are still here because we believe there isn't alternative for PVD. None of other programs, and I tried them so many in last 15-20 years is not even close to PVD.
Title: Re: Alternative
Post by: Ivek23 on May 09, 2018, 05:56:08 am
Maybe Movienizer, which is payable or EMDB, which is free.
Title: Re: Alternative
Post by: VVV_Easy_Programing on May 09, 2018, 02:00:17 pm
Unfortunately, we are still here because we believe there isn't alternative for PVD. None of other programs, and I tried them so many in last 15-20 years is not even close to PVD.
I agree with afrocuban, not other programs are so flexible as PVD.
With periodic updates you can try "Ant Movie Catalog", "Filmotech" and the cited by Ivek EMDB "Eric's Movie Database".
If you want test without install, you can use SyMenu, a portable menu launcher https://www.ugmfree.it/Default.aspx (https://www.ugmfree.it/Default.aspx)
But, if you wait a little I'm trying to make a PVD MOD that works without much problems  ;D
Title: Re: Alternative
Post by: afrocuban on May 09, 2018, 10:40:13 pm
Thank you Easy. We are waiting for your mod, and hopefully for your FilmAffinity English script!  8) ;D
Title: Re: Alternative
Post by: deazo on May 10, 2018, 11:30:37 am

I started using PVD in 2008.
I have loved (and still do) PVD but I have recently decided to move on, because of several reasons, but mainly because the movie plugins were getting difficult to work with and I simply could not rely on one single (great) guy called Ivek to help me, every time I had issues.
I have never liked xbmc and other fancy tools, because they never gave me the power PVD was giving me, and the sexy interface with limited navigation/filtering did not really appeal to me.
 
I found a good "half-way" tool called PLEX.
It is very simple to work with.
It matches movies easily and have many nice plugins.
The interface is OK, and the filterings/navigation is OK (not great, but really OK).
It is free with some premium features but the free version does the job.

Bottom line: I now spend much less time maintaining my collection than with pvd.

Extra info:
I have built a NAS server based on UNRAID. I have setup automated downloads with various tools (sonarr, radarr, deluge, etc.) all done via vpn.
Everything goes to Plex, get matched, and can be watched from everywhere.

I am still keeping an eye on PVD through this forum because I still love it and I could easily start using it again.

 
Title: Re: Alternative
Post by: afrocuban on May 10, 2018, 07:08:57 pm
I totally understand you, deazo. A year ago I tried to move to Kodi (Plex runs in it, as well), because in Kodi you actually don't have to have a file in order to import it to library. Exported my ~7k titles with as much as possible fields and imported to Kodi, but after couple of months I quit - it simply isn't made to keep big library, it became slow as hell.

For Plex, you have to have a file, and in PVD I keep the records of all the movies I have seen (on TV, in cinema, etc.).

So, it depends a lot on what you make a database for.

I agree that is very difficult to use PVD in this situation, and I really admire to Ivek for his devotion, but for me and my needs simply there is no alternative. I will never erase my ~17GB database.

Kind regards
Title: Re: Alternative
Post by: Ivek23 on May 10, 2018, 07:25:51 pm
I agree that is very difficult to use PVD in this situation, and I really admire to Ivek for his devotion, but for me and my needs simply there is no alternative.

Thank you very much for your compliments. I count this in honor, afrocuban. I am also happy to do this because I am a fan of good and old, especiallymovies from western, comedy, history and adventure genres.
Title: Re: Alternative
Post by: afrocuban on May 10, 2018, 07:51:41 pm
No, Ivek. Thank YOU - for recognizing its value and keeping alive best ever application.

PVD.
Title: Re: Alternative
Post by: deazo on May 10, 2018, 09:04:38 pm

 Yes Ivek thank you for all the help, I know I already thanked you many times but really you kept me afloat for many more months with PVD.

 Afrocuban yes I see your point about needing a file.
 In PVD I have many movie pages that are not linked to a file because I delete from my hard drive any movie that I do not rank higher than 6.5/10.
 In Plex if you delete the file, the movie page disappears.
 Like I said I did try Kodi/XBMC and still do not like it (big empty pages with stupid fanart that I do not need)
 Plex however is more "to the point" and in terms of speed it is currently handling 5K+ of my movies, and I am not counting the series and personal pics/videos with no issue.
It is also a player and a great quality one.
 
 One thing to note however is that the Plex library is not a file (like the pvd library), and there are limited export options, and I am basically pretty sure the day it crashes I will loose the metadata.
 So Plex feels a bit like a black box you do not REALLY control.

 But to be honest what matters the most to me are the actual movie files (kept on my hard drive and backed up), my watched/unwatched status (synchronised via API with trakt.tv), and my ratings (synchronised with trakt/imdb). The metadata can be rebuild quite easily as long as you have named/organised your collection properly and using the right scraper.

 I really wish we had the bloody PVD code, I am sure this software could fly way above any other software with good development.

 I will for sure keep popping my head around here to see if we finally broke that damn wall.

 
 
 
 
Title: Re: Alternative
Post by: VVV_Easy_Programing on May 10, 2018, 09:32:30 pm
Well, I see that all have our own solution.
Personaly I prefers the more near of software FOS (Free Open Source): I use PVD for store all of my collection and with the template Export to XBMC:
http://www.videodb.info/forum_en/index.php/topic,1496.msg20102.html#msg20102 (http://www.videodb.info/forum_en/index.php/topic,1496.msg20102.html#msg20102)
I create the *.nfo  files to read with KODI scrapers in "Local Information Only" and I can renovate the saved information in PVD every time that I want.

BTW, afrocuban, I think that the Filmaffinity [EN][HTTPS] will arrive early but now I'm workin in Personal DB-MOD. Here the first alfa version:
http://vvveasy.altervista.org/wp-content/uploads/2018/05/PersonalVideoDB_MOD-V.Alfa_.1.zip (http://vvveasy.altervista.org/wp-content/uploads/2018/05/PersonalVideoDB_MOD-V.Alfa_.1.zip)

I need alfa-testers  ;D for the general program working (not for the retreived info, I must adapt the Ivek IMDB  scripts).
You can unzip in your desktop and run only in portable mode (portable.bat) without internet proxi.

 ;D Eager of knowing the results of your first tests ;D
Title: Re: Alternative
Post by: Ivek23 on May 11, 2018, 07:20:06 am
I need alfa-testers  ;D for the general program working (not for the retreived info, I must adapt the Ivek IMDB  scripts).
You can unzip in your desktop and run only in portable mode (portable.bat) without internet proxi.

 ;D Eager of knowing the results of your first tests ;D

I will try to add it to the forum as soon as possible repaired Imdb scripts to make it easier to adapt for use in this program.
Title: Re: Alternative
Post by: Ivek23 on May 11, 2018, 10:27:42 am
I have already tested it, now also Filmaffinity [ES] [HTTPS] script, which previously did not work, also works. Few corrections and will be rightly and effectively replaced for the current PVD.
Title: Re: Alternative
Post by: afrocuban on May 11, 2018, 05:06:35 pm
Thanks for the mod, Easy. I have quickly tried it. Imported ~5k titles, and noticed nothing bad. You were right -imdb script doesn't work, as well as proxy. Import from tmdb was smooth. Hopefully imdb and other scripts will work after you adapt them.

Thank you for your contribution!

Kind regards
Title: Re: Alternative
Post by: afrocuban on May 11, 2018, 11:17:39 pm
... now also Filmaffinity [ES] [HTTPS] script, which previously did not work, also works.

Strange. This script doesn't work for me. It gives me error:

"Too many faulty attempts to internet conexion.
  žRetry or Cancel"
 
(typos are seen in dialog box - "coneXion" and "ž")
Title: Re: Alternative
Post by: Ivek23 on May 12, 2018, 05:11:08 am
... now also Filmaffinity [ES] [HTTPS] script, which previously did not work, also works.

Strange. This script doesn't work for me. It gives me error:

"Too many faulty attempts to internet conexion.
  žRetry or Cancel"
 
(typos are seen in dialog box - "coneXion" and "ž")

For in my case:
This error occurs in 0.9.9.21 version. For version 1.0.2.7, it works normally. Proxomitron is not switched on then.
Title: Re: Alternative
Post by: afrocuban on May 12, 2018, 11:19:14 am
This error happens to me in Easy MOD's version - 1.0.2.7, and of course proxy isn't turned on in PVD while it happens.
Title: Re: Alternative
Post by: Ivek23 on May 13, 2018, 07:47:51 am
Easy MOD's version - 1.0.2.7

imdb script


In certain cases, he himself finds a movie title in search of results and also transfers information.

In certain cases, it can not find a movie title in search for results, but it transmits information using a manual URL address entry.

In certain cases it does not work at all and a window appears where you can then stop the PVD.

When this field confirms that the PVD is still open (once or twice) and restart imdb script, then there are two options: the script will work with the transmission of information, or there will still be a window to close the PVD.

The reason is probably in this URL for finding results, for example, below.

https://www.imdb.com/search/title?title=10+Things+I+Hate+About+You&title_type=feature&release_date=,&view=simple

The better url url for finding results is, for example, below.

https://www.imdb.com/find?ref_=nv_sr_fn&q=10+Things+I+Hate+About+You&s=tt

It would also be good if the search for results would not be a preview of the images, because the quality of the images is very poor.
Title: Re: Alternative
Post by: Ivek23 on May 13, 2018, 08:15:53 pm
You have here to test IMDB_ [EN] [HTTPS] script for Easy MOD's version - 1.0.2.7 .

Script is added.
Title: Re: Alternative
Post by: VVV_Easy_Programing on May 13, 2018, 09:11:07 pm
Thank you very much for your help.
I have some ideas to correct the problems but there is a  lot of work.
Stay tunned  ;D .
Title: Re: Alternative
Post by: Ivek23 on May 14, 2018, 05:29:31 pm
Maybe this search url link is better for movies search results.

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

http://www.bing.com/search?q=site%3Awww.imdb.com%2Ftitle+Casablanca

https://www.bing.com/search?q=site%3Awww.imdb.com%2Ftitle+Casablanca
Title: Re: Alternative
Post by: VVV_Easy_Programing 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 (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.
Title: Re: Alternative
Post by: Ivek23 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.
Title: Re: Alternative
Post by: Ivek23 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.
Title: Re: Alternative
Post by: afrocuban 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 (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
Title: Re: Alternative
Post by: Ivek23 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.
Title: Re: Alternative
Post by: Ivek23 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.
Title: Re: Alternative
Post by: VVV_Easy_Programing 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 (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.
Title: Re: Alternative
Post by: VVV_Easy_Programing 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 (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).
Title: Re: Alternative
Post by: Ivek23 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.
 
Title: Re: Alternative
Post by: Ivek23 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.
Title: Re: Alternative
Post by: VVV_Easy_Programing 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 (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.



Title: Re: Alternative
Post by: Ivek23 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+' ||');
Title: Re: Alternative
Post by: VVV_Easy_Programing 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?
Title: Re: Alternative
Post by: afrocuban 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
Title: Re: Alternative
Post by: Ivek23 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/

Title: Re: Alternative
Post by: Ivek23 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.
Title: Re: Alternative
Post by: VVV_Easy_Programing 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 (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.


Title: Re: Alternative
Post by: afrocuban 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.
Title: Re: Alternative
Post by: VVV_Easy_Programing 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 (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.
Title: Re: Alternative
Post by: Ivek23 on May 31, 2018, 07:46:20 am
The Alfa 6 version:

IMDB_ [EN] [HTTPS] script


IMDB_ [EN] [HTTPS] script now does not work. Log files are described by movie titles (for example - 8 Mile log).

In IMDB_ [EN] [HTTPS] script I changed the url title for BASE_URL_CAST, which is visible in the 8 Mile log file and then the script was downloaded, the script did not do this for A Good Day To Die Hard and 310 To Yuma movie.

I already found out when I added some of my additional information to the script that many times BASE_URL_CAST blocked the PVD program. When I removed the code for CAST, AWARDS and MPAA, however, the script normally transferred information, even for AKA.

I attach A Good Day To Die Hard log folder in 7z format, where the log file and my version of IMDB_ [EN] [HTTPS] scripts.
Title: Re: Alternative
Post by: VVV_Easy_Programing on May 31, 2018, 02:28:00 pm
Quote
When I removed the code for CAST, AWARDS and MPAA

Ivek23, If you run the first script  "**** Scripts Configuration ****" you are capable of change the script behavior of download or not the pages of AKA, CAST, AWARDS and MPAA. You don't need to remove the code.

With the Log file I see a hint of the problem: When the script try to get the downloaded movie page, PVD fails and recompliling the script. I think that this happens because the download of the page is not complete (may be for the line speed or for the weight of the page). I have some ideas to solve this. Stay tunned.

BTW, "TheMoveDB script works flawless" because it is a API script and only download the data text in a standart order. The others scripts download the "user" web page, with all the HTML code.
Title: Re: Alternative
Post by: Ivek23 on May 31, 2018, 02:44:06 pm
The Alfa 6 version:

IMDB_ [EN] [HTTPS] script


I know about this
Quote
When I removed the code for CAST, AWARDS and MPAA

Ivek23, If you run the first script  "**** Scripts Configuration ****" you are capable of change the script behavior of download or not the pages of AKA, CAST, AWARDS and MPAA. You don't need to remove the code.
, but it did not work enough to determine with certainty the error.

I already found out when I added some of my additional information to the script that many times BASE_URL_CAST blocked the PVD program. When I removed the code for CAST, AWARDS and MPAA, however, the script normally transferred information, even for AKA.

I just did this to make it easier to find out where the error was supposed to be.
Title: Re: Alternative
Post by: Ivek23 on May 31, 2018, 06:29:41 pm
The Alfa 6 version:

IMDB_ [EN] [HTTPS] script

Blade Runner


IMDB_ [EN] [HTTPS] script info for the Blade Runner movie title in The Alfa 6 version is not downloadable, while the search for results works.

Log
Quote
(31.5.2018 19:21:45) PVD Version: 1.0.2.7
(31.5.2018 19:21:45) OS: Windows 7 Ultimate Edition
(31.5.2018 19:21:45) GlassFrame Enabled
(31.5.2018 19:21:45) Plugin loaded: csvimp.dll 0.1.3.1
(31.5.2018 19:21:45) Plugin loaded: mpexport.dll 0.1.0.2
(31.5.2018 19:21:45) Plugin loaded: msexcel.dll 0.4.1.0
(31.5.2018 19:21:45) Plugin loaded: plainexp.dll 0.7.1.2
(31.5.2018 19:21:47) Plugin loaded: pvdtotray.dll 0.1.0.1
(31.5.2018 19:21:47) Plugin loaded: scriptint.dll 0.3.0.2
(31.5.2018 19:21:47) Plugin loaded: valueconvert.dll 0.1.0.2
(31.5.2018 19:21:47) Compiling script: FilmAffinity_[ES][HTTPS].psf
(31.5.2018 19:21:47) Script compiled successfully: FilmAffinity_[ES][HTTPS].psf
[Warning] (680:47): "and True" is not needed
(31.5.2018 19:21:47) Executing script binary
(31.5.2018 19:21:47) Compiling script: FilmAffinity_[ES][HTTPS]_New_Releases.psf
(31.5.2018 19:21:47) Script compiled successfully: FilmAffinity_[ES][HTTPS]_New_Releases.psf
[Warning] (257:31): "True and" is not needed
(31.5.2018 19:21:47) Executing script binary
(31.5.2018 19:21:47) Compiling script: IMDB_[EN][HTTPS].psf
(31.5.2018 19:21:47) Script compiled successfully: IMDB_[EN][HTTPS].psf
[Warning] (1080:47): "and True" is not needed
(31.5.2018 19:21:47) Executing script binary
(31.5.2018 19:21:47) Compiling script: PVdBScriptConfig.psf
(31.5.2018 19:21:47) Script compiled successfully: PVdBScriptConfig.psf
(31.5.2018 19:21:47) Executing script binary
(31.5.2018 19:21:47) Compiling script: PVdBScriptConfigPeople.psf
(31.5.2018 19:21:47) Script compiled successfully: PVdBScriptConfigPeople.psf
(31.5.2018 19:21:47) Executing script binary
(31.5.2018 19:21:47) Compiling script: Several_File_Infos.psf
(31.5.2018 19:21:47) Script compiled successfully: Several_File_Infos.psf
(31.5.2018 19:21:47) Executing script binary
(31.5.2018 19:21:47) Compiling script: TheMovieDB_People_[EN][API].psf
(31.5.2018 19:21:47) Script compiled successfully: TheMovieDB_People_[EN][API].psf
(31.5.2018 19:21:47) Executing script binary
(31.5.2018 19:21:47) Compiling script: TheMovieDB_[EN][API].psf
(31.5.2018 19:21:47) Script compiled successfully: TheMovieDB_[EN][API].psf
[Warning] (586:21): "True and" is not needed
(31.5.2018 19:21:47) Executing script binary
(31.5.2018 19:21:47) Script loaded: FilmAffinity_[ES][HTTPS].psf 4.0.0.1
(31.5.2018 19:21:47) Script loaded: FilmAffinity_[ES][HTTPS]_New_Releases.psf 4.0.0.2
(31.5.2018 19:21:47) Script loaded: IMDB_[EN][HTTPS].psf 1.0.0.0
(31.5.2018 19:21:47) Script loaded: PVdBScriptConfig.psf 1.0.0.0
(31.5.2018 19:21:47) Script loaded: PVdBScriptConfigPeople.psf 1.0.0.0
(31.5.2018 19:21:47) Script loaded: Several_File_Infos.psf 1.0.0.0
(31.5.2018 19:21:47) Script loaded: TheMovieDB_People_[EN][API].psf 1.0.0.0
(31.5.2018 19:21:47) Script loaded: TheMovieDB_[EN][API].psf 1.0.0.0
(31.5.2018 19:21:48) Loading database: D:\MyTestPVD\PersonalVideoDB_MOD\PersonalVideoDB6\movies.pvd
(31.5.2018 19:21:49) Query time: 0 ms
(31.5.2018 19:21:58) Compiling script: IMDB_[EN][HTTPS].psf
(31.5.2018 19:21:58) Script compiled successfully: IMDB_[EN][HTTPS].psf
[Warning] (1080:47): "and True" is not needed
(31.5.2018 19:21:58) Executing script binary
(31.5.2018 19:21:58) Logging in...
(31.5.2018 19:21:59) Function GetDownloadURL BEGIN======================|
(31.5.2018 19:21:59) Global Var-Mode|0|
(31.5.2018 19:21:59) Global Var-DownloadURL||
(31.5.2018 19:21:59)       No IMDB URL.
(31.5.2018 19:21:59) Function GetDownloadURL END====================== with Mode=0 Result=D:\MyTestPVD\PersonalVideoDB_MOD\PersonalVideoDB6\portable.bat|
(31.5.2018 19:21:59) Searching movie information for: Blade Runner
(31.5.2018 19:21:59) Function ParsePage BEGIN======================|
(31.5.2018 19:21:59) Global Var-Mode|0|
(31.5.2018 19:21:59) Global Var-DownloadURL||
(31.5.2018 19:21:59) Local Var-URL||
(31.5.2018 19:22:00)   ParsePage smSearch|0|. Searching DownloadURL for MovieTitle |Blade Runner| MovieYear ||
(31.5.2018 19:22:00)       Searching in Provider:|https://www.imdb.com/search/title?title=Blade+Runner&title_type=feature&release_date=,&view=simple||
(31.5.2018 19:22:00) Function DownloadPage BEGIN======================|
(31.5.2018 19:22:00) Global Var-DownloadURL|https://www.imdb.com/search/title?title=Blade+Runner&title_type=feature&release_date=,&view=simple|
(31.5.2018 19:22:00)    Local Var-URL|https://www.imdb.com/search/title?title=Blade+Runner&title_type=feature&release_date=,&view=simple|
(31.5.2018 19:22:00)       Waiting 1s for delete:D:\MyTestPVD\PersonalVideoDB_MOD\PersonalVideoDB6\Scripts\downpage-UTF8_NO_BOM.htm
(31.5.2018 19:22:01)       Download with PVdBDownPage in file:|D:\MyTestPVD\PersonalVideoDB_MOD\PersonalVideoDB6\Scripts\downpage-UTF8_NO_BOM.htm the information of:|https://www.imdb.com/search/title?title=Blade+Runner&title_type=feature&release_date=,&view=simple||
(31.5.2018 19:22:01)       Waiting 2s for exists of:D:\MyTestPVD\PersonalVideoDB_MOD\PersonalVideoDB6\Scripts\downpage-UTF8_NO_BOM.htm
(31.5.2018 19:22:03)       Now present file: D:\MyTestPVD\PersonalVideoDB_MOD\PersonalVideoDB6\Scripts\downpage-UTF8_NO_BOM.htm
(31.5.2018 19:22:03)       Now present complete page file: D:\MyTestPVD\PersonalVideoDB_MOD\PersonalVideoDB6\Scripts\downpage-UTF8_NO_BOM.htm
(31.5.2018 19:22:03) Function DownloadPage END======================|
(31.5.2018 19:22:03) Function ParsePage_IMDBSearchTitle BEGIN======================|
(31.5.2018 19:22:03) Global Var-Mode|0|
(31.5.2018 19:22:03) Global Var-DownloadURL|https://www.imdb.com/search/title?title=Blade+Runner&title_type=feature&release_date=,&view=simple|
(31.5.2018 19:22:03)         Parsing search Movies results
(31.5.2018 19:22:03)     Parsing search movie results in 53298 ...
(31.5.2018 19:22:03)       Parse Results PreviewURL:||
(31.5.2018 19:22:03)       Parse Results URL:http://www.imdb.com/title/tt1856101/||
(31.5.2018 19:22:03)       Parse Results CHEAT URL:http://www.jsontest.com/ http://www.imdb.com/title/tt1856101/||
(31.5.2018 19:22:03)       Parse Results Title:Iztrebljevalec 2049||
(31.5.2018 19:22:03)     Parse Results in Year:2017||
(31.5.2018 19:22:03)     Parsing search movie results in 57397 ...
(31.5.2018 19:22:03)       Parse Results PreviewURL:||
(31.5.2018 19:22:03)       Parse Results URL:http://www.imdb.com/title/tt0083658/||
(31.5.2018 19:22:03)       Parse Results CHEAT URL:http://www.jsontest.com/ http://www.imdb.com/title/tt0083658/||
(31.5.2018 19:22:03)       Parse Results Title:Iztrebljevalec||
(31.5.2018 19:22:03)     Parse Results in Year:1982||
(31.5.2018 19:22:03)     Parsing search movie results in 61514 ...
(31.5.2018 19:22:03)       Parse Results PreviewURL:||
(31.5.2018 19:22:03)       Parse Results URL:http://www.imdb.com/title/tt7445510/||
(31.5.2018 19:22:03)       Parse Results CHEAT URL:http://www.jsontest.com/ http://www.imdb.com/title/tt7445510/||
(31.5.2018 19:22:03)       Parse Results Title:Oscar Pistorius: Blade Runner Killer||
(31.5.2018 19:22:03)     Parse Results in Year:2017||
(31.5.2018 19:22:03)       After parsing search Movies go to choose List Results
(31.5.2018 19:22:03) Function ParsePage_IMDBSearchTitle END=====================||
(31.5.2018 19:22:03) Function ParsePage smSearchList END======================|
(31.5.2018 19:22:08) GET: http://www.jsontest.com/ http://www.imdb.com/title/tt0083658/
(31.5.2018 19:22:09) Function ParsePage BEGIN======================|
(31.5.2018 19:22:09) Global Var-Mode|8|
(31.5.2018 19:22:09) Global Var-DownloadURL|https://www.imdb.com/search/title?title=Blade+Runner&title_type=feature&release_date=,&view=simple|
(31.5.2018 19:22:09) Local Var-URL|http://www.jsontest.com/ http://www.imdb.com/title/tt0083658/|
(31.5.2018 19:22:09)   ParsePage mode smSearchList. Getting DownloadURL from the return of smSearchList
(31.5.2018 19:22:09)      Global Var-DownloadURL|https://www.imdb.com/title/tt0083658/|
(31.5.2018 19:22:09)      With the good movie URL it demand download the movie page
(31.5.2018 19:22:09)   ParsePage mode smNormal|1|. Getting provider data for MovieID|tt0083658|
(31.5.2018 19:22:09)       Get result url:http://www.imdb.com/title/tt0083658/||
(31.5.2018 19:22:09) Function DownloadPage BEGIN======================|
(31.5.2018 19:22:09) Global Var-DownloadURL|https://www.imdb.com/title/tt0083658/|
(31.5.2018 19:22:09)    Local Var-URL|https://www.imdb.com/title/tt0083658/|
(31.5.2018 19:22:09)       Waiting 1s for delete:D:\MyTestPVD\PersonalVideoDB_MOD\PersonalVideoDB6\Scripts\downpage-UTF8_NO_BOM.htm
(31.5.2018 19:22:10)       Download with PVdBDownPage in file:|D:\MyTestPVD\PersonalVideoDB_MOD\PersonalVideoDB6\Scripts\downpage-UTF8_NO_BOM.htm the information of:|https://www.imdb.com/title/tt0083658/||
(31.5.2018 19:22:10)       Waiting 2s for exists of:D:\MyTestPVD\PersonalVideoDB_MOD\PersonalVideoDB6\Scripts\downpage-UTF8_NO_BOM.htm
(31.5.2018 19:22:12)       Now present file: D:\MyTestPVD\PersonalVideoDB_MOD\PersonalVideoDB6\Scripts\downpage-UTF8_NO_BOM.htm
(31.5.2018 19:22:18) Compiling script: IMDB_[EN][HTTPS].psf
(31.5.2018 19:22:18) Script compiled successfully: IMDB_[EN][HTTPS].psf
[Warning] (1080:47): "and True" is not needed
(31.5.2018 19:22:18) Executing script binary
(31.5.2018 19:22:18) Logging in...
(31.5.2018 19:22:18) Function GetDownloadURL BEGIN======================|
(31.5.2018 19:22:18) Global Var-Mode|0|
(31.5.2018 19:22:18) Global Var-DownloadURL||
(31.5.2018 19:22:19)       No IMDB URL.
(31.5.2018 19:22:19) Function GetDownloadURL END====================== with Mode=0 Result=D:\MyTestPVD\PersonalVideoDB_MOD\PersonalVideoDB6\portable.bat|
(31.5.2018 19:22:19) Searching movie information for: Blade Runner
(31.5.2018 19:22:19) Function ParsePage BEGIN======================|
(31.5.2018 19:22:19) Global Var-Mode|0|
(31.5.2018 19:22:19) Global Var-DownloadURL||
(31.5.2018 19:22:19) Local Var-URL|http://www.jsontest.com/ http://www.imdb.com/title/tt0083658/|
(31.5.2018 19:22:20)   ParsePage smSearch|0|. Searching DownloadURL for MovieTitle |Blade Runner| MovieYear ||
(31.5.2018 19:22:20)       Searching in Provider:|https://www.imdb.com/search/title?title=Blade+Runner&title_type=feature&release_date=,&view=simple||
(31.5.2018 19:22:20) Function DownloadPage BEGIN======================|
(31.5.2018 19:22:20) Global Var-DownloadURL|https://www.imdb.com/search/title?title=Blade+Runner&title_type=feature&release_date=,&view=simple|
(31.5.2018 19:22:20)    Local Var-URL|https://www.imdb.com/search/title?title=Blade+Runner&title_type=feature&release_date=,&view=simple|
(31.5.2018 19:22:20)       Waiting 1s for delete:D:\MyTestPVD\PersonalVideoDB_MOD\PersonalVideoDB6\Scripts\downpage-UTF8_NO_BOM.htm
(31.5.2018 19:22:21)       Download with PVdBDownPage in file:|D:\MyTestPVD\PersonalVideoDB_MOD\PersonalVideoDB6\Scripts\downpage-UTF8_NO_BOM.htm the information of:|https://www.imdb.com/search/title?title=Blade+Runner&title_type=feature&release_date=,&view=simple||
(31.5.2018 19:22:21)       Waiting 2s for exists of:D:\MyTestPVD\PersonalVideoDB_MOD\PersonalVideoDB6\Scripts\downpage-UTF8_NO_BOM.htm
(31.5.2018 19:22:23)       Now present file: D:\MyTestPVD\PersonalVideoDB_MOD\PersonalVideoDB6\Scripts\downpage-UTF8_NO_BOM.htm
Title: Re: Alternative
Post by: Ivek23 on May 31, 2018, 06:32:28 pm
Part 2:

The Alfa 4 version:

IMDB_ [EN] [HTTPS] script

Blade Runner


Quote
When I removed the code for CAST, AWARDS and MPAA

With the already manually added URL address, so the IMDB_ [EN] [HTTPS] script transmits info for the Blade Runner movie.
Log
Quote
(31.5.2018 19:13:20) PVD Version: 1.0.2.7
(31.5.2018 19:13:20) OS: Windows 7 Ultimate Edition
(31.5.2018 19:13:20) GlassFrame Enabled
(31.5.2018 19:13:20) Plugin loaded: csvimp.dll 0.1.3.1
(31.5.2018 19:13:20) Plugin loaded: mpexport.dll 0.1.0.2
(31.5.2018 19:13:20) Plugin loaded: msexcel.dll 0.4.1.0
(31.5.2018 19:13:20) Plugin loaded: plainexp.dll 0.7.1.2
(31.5.2018 19:13:20) Plugin loaded: scriptint.dll 0.3.0.2
(31.5.2018 19:13:20) Plugin loaded: valueconvert.dll 0.1.0.2
(31.5.2018 19:13:20) Compiling script: FilmAffinity_[ES][HTTPS].psf
(31.5.2018 19:13:20) Script compiled successfully: FilmAffinity_[ES][HTTPS].psf
[Warning] (680:47): "and True" is not needed
(31.5.2018 19:13:20) Executing script binary
(31.5.2018 19:13:20) Compiling script: FilmAffinity_[ES][HTTPS]_New_Releases.psf
(31.5.2018 19:13:20) Script compiled successfully: FilmAffinity_[ES][HTTPS]_New_Releases.psf
[Warning] (257:31): "True and" is not needed
(31.5.2018 19:13:20) Executing script binary
(31.5.2018 19:13:20) Compiling script: IMDB_[EN][HTTPS].psf
(31.5.2018 19:13:20) Script compiled successfully: IMDB_[EN][HTTPS].psf
[Warning] (1187:47): "and True" is not needed
(31.5.2018 19:13:20) Executing script binary
(31.5.2018 19:13:20) Compiling script: IMDB_[EN][HTTPS]0.psf
(31.5.2018 19:13:20) Script compiled successfully: IMDB_[EN][HTTPS]0.psf
[Warning] (1187:47): "and True" is not needed
(31.5.2018 19:13:20) Executing script binary
(31.5.2018 19:13:20) Compiling script: IMDB_[EN][HTTPS]1.psf
(31.5.2018 19:13:20) Script compiled successfully: IMDB_[EN][HTTPS]1.psf
[Warning] (845:47): "and True" is not needed
(31.5.2018 19:13:20) Executing script binary
(31.5.2018 19:13:20) Compiling script: IMDB_[EN][HTTPS]2.psf
(31.5.2018 19:13:20) Script compiled successfully: IMDB_[EN][HTTPS]2.psf
[Warning] (1178:47): "and True" is not needed
(31.5.2018 19:13:20) Executing script binary
(31.5.2018 19:13:20) Compiling script: IMDB_[EN][HTTPS]3.psf
(31.5.2018 19:13:20) Script compiled successfully: IMDB_[EN][HTTPS]3.psf
[Warning] (778:47): "and True" is not needed
(31.5.2018 19:13:20) Executing script binary
(31.5.2018 19:13:20) Compiling script: PVdBScriptConfig.psf
(31.5.2018 19:13:20) Script compiled successfully: PVdBScriptConfig.psf
(31.5.2018 19:13:20) Executing script binary
(31.5.2018 19:13:20) Compiling script: Several_File_Infos.psf
(31.5.2018 19:13:20) Script compiled successfully: Several_File_Infos.psf
(31.5.2018 19:13:20) Executing script binary
(31.5.2018 19:13:20) Compiling script: TheMovieDB_People_[EN].psf
(31.5.2018 19:13:20) Script compiled successfully: TheMovieDB_People_[EN].psf
(31.5.2018 19:13:20) Executing script binary
(31.5.2018 19:13:20) Compiling script: TheMovieDB_[EN][API].psf
(31.5.2018 19:13:20) Script compiled successfully: TheMovieDB_[EN][API].psf
[Warning] (573:21): "True and" is not needed
(31.5.2018 19:13:20) Executing script binary
(31.5.2018 19:13:20) Script loaded: FilmAffinity_[ES][HTTPS].psf 4.0.0.1
(31.5.2018 19:13:20) Script loaded: FilmAffinity_[ES][HTTPS]_New_Releases.psf 4.0.0.2
(31.5.2018 19:13:20) Script loaded: IMDB_[EN][HTTPS].psf 1.0.0.0
(31.5.2018 19:13:20) Script loaded: IMDB_[EN][HTTPS]0.psf 1.0.0.0
(31.5.2018 19:13:20) Script loaded: IMDB_[EN][HTTPS]1.psf 1.0.0.0
(31.5.2018 19:13:20) Script loaded: IMDB_[EN][HTTPS]2.psf 1.0.0.0
(31.5.2018 19:13:20) Script loaded: IMDB_[EN][HTTPS]3.psf 1.0.0.0
(31.5.2018 19:13:20) Script loaded: PVdBScriptConfig.psf 1.0.0.0
(31.5.2018 19:13:20) Script loaded: Several_File_Infos.psf 1.0.0.0
(31.5.2018 19:13:20) Script loaded: TheMovieDB_People_[EN].psf V 1.0.0.0
(31.5.2018 19:13:20) Script loaded: TheMovieDB_[EN][API].psf 1.0.0.0
(31.5.2018 19:13:21) Loading database: D:\MyTestPVD\PersonalVideoDB_MOD\PersonalVideoDB2\movies.pvd
(31.5.2018 19:13:22) Query time: 0 ms
(31.5.2018 19:13:26) Compiling script: IMDB_[EN][HTTPS]3.psf
(31.5.2018 19:13:26) Script compiled successfully: IMDB_[EN][HTTPS]3.psf
[Warning] (778:47): "and True" is not needed
(31.5.2018 19:13:26) Executing script binary
(31.5.2018 19:13:26) Logging in...
(31.5.2018 19:13:26) Function GetDownloadURL BEGIN======================|
(31.5.2018 19:13:26) Global Var-Mode|0|
(31.5.2018 19:13:26) Global Var-DownloadURL||
(31.5.2018 19:13:27)       IMDB URL.
(31.5.2018 19:13:27)       Parse stored information DownloadURL:https://www.imdb.com/title/tt0083658/||
(31.5.2018 19:13:27) Function GetDownloadURL END====================== with Mode=1 Result=D:\MyTestPVD\PersonalVideoDB_MOD\PersonalVideoDB2\portable.bat|
(31.5.2018 19:13:27) Searching movie information for: Blade Runner
(31.5.2018 19:13:27) Function ParsePage BEGIN======================|
(31.5.2018 19:13:27) Global Var-Mode|1|
(31.5.2018 19:13:27) Global Var-DownloadURL|https://www.imdb.com/title/tt0083658/|
(31.5.2018 19:13:27) Local Var-URL||
(31.5.2018 19:13:27)   ParsePage mode smNormal|1|. Getting provider data for MovieID|tt0083658|
(31.5.2018 19:13:27)       Get result url:http://www.imdb.com/title/tt0083658/||
(31.5.2018 19:13:27) Function DownloadPage BEGIN======================|
(31.5.2018 19:13:27) Global Var-DownloadURL|https://www.imdb.com/title/tt0083658/|
(31.5.2018 19:13:27)    Local Var-URL|https://www.imdb.com/title/tt0083658/|
(31.5.2018 19:13:27)       Waiting 1s for delete:D:\MyTestPVD\PersonalVideoDB_MOD\PersonalVideoDB2\Scripts\downpage-UTF8_NO_BOM.htm
(31.5.2018 19:13:28)       Download with PVdBDownPage in file:|D:\MyTestPVD\PersonalVideoDB_MOD\PersonalVideoDB2\Scripts\downpage-UTF8_NO_BOM.htm the information of:|https://www.imdb.com/title/tt0083658/||
(31.5.2018 19:13:28)       Waiting 2s for exists of:D:\MyTestPVD\PersonalVideoDB_MOD\PersonalVideoDB2\Scripts\downpage-UTF8_NO_BOM.htm
(31.5.2018 19:13:30)       Waiting 2s for exists of:D:\MyTestPVD\PersonalVideoDB_MOD\PersonalVideoDB2\Scripts\downpage-UTF8_NO_BOM.htm
(31.5.2018 19:13:32)       Now present file: D:\MyTestPVD\PersonalVideoDB_MOD\PersonalVideoDB2\Scripts\downpage-UTF8_NO_BOM.htm
(31.5.2018 19:13:32)       Now present complete page file: D:\MyTestPVD\PersonalVideoDB_MOD\PersonalVideoDB2\Scripts\downpage-UTF8_NO_BOM.htm
(31.5.2018 19:13:32) Function DownloadPage END======================|
(31.5.2018 19:13:32) Function ParsePage_IMDBMovieBASE BEGIN======================|
(31.5.2018 19:13:32)       Get result title:Iztrebljevalec||
(31.5.2018 19:13:32)       Get result year:1982||
(31.5.2018 19:13:32)       Get result origtitle:Blade Runner||
(31.5.2018 19:13:32)       Get result poster:http://ia.media-imdb.com/images/M/MV5BNzQzMzJhZTEtOWM4NS00MTdhLTg0YjgtMjM4MDRkZjUwZDBlXkEyXkFqcGdeQXVyNjU0OTQ0OTY@.jpg||
(31.5.2018 19:13:32)       Get result imdbrating:8.2||
(31.5.2018 19:13:32)       Get result IMDB_Votes:585678||
(31.5.2018 19:13:32)       Get result TOP_250:151||
(31.5.2018 19:13:32)       Get result description:In the 21st century, a corporation develops human clones to be used as slaves in colonies outside the Earth, identified as replicants. In 2019, a former police officer is hired to hunt down a fugitive group of clones living undercover in Los Angeles.||
(31.5.2018 19:13:32)       Get results Category:tech noir                        , human android relationship                        , police detective                        , female android                        , megacorporation            ,||
(31.5.2018 19:13:32)       Get result tagline:The star of "RAIDERS OF THE LOST ARK" and the director of "ALIEN" take you on a spectacular journey to the savage world of the year 2019!!||
(31.5.2018 19:13:32)       Get results Genre:Sci-Fi , Thriller||
(31.5.2018 19:13:32)       Get results Country:USA              ,        Hong Kong||
(31.5.2018 19:13:32)       Get results Release Date:25.6.1982||
(31.5.2018 19:13:32)       Get results Budget:$28,000,000||
(31.5.2018 19:13:32)       Get results Studio/Production Co:Ladd Company, The||
(31.5.2018 19:13:32) Function ParsePage_IMDBMovieBASE END=====================||
(31.5.2018 19:13:32)     Provider data info retreived Ok in 2018-05-31 19:13:32|
(31.5.2018 19:13:32) Function ParsePage NORMAL END======================|
(31.5.2018 19:13:32) GET: http://ia.media-imdb.com/images/M/MV5BNzQzMzJhZTEtOWM4NS00MTdhLTg0YjgtMjM4MDRkZjUwZDBlXkEyXkFqcGdeQXVyNjU0OTQ0OTY@.jpg
(31.5.2018 19:21:15) Compiling script: IMDB_[EN][HTTPS].psf
(31.5.2018 19:21:15) Script compiled successfully: IMDB_[EN][HTTPS].psf
[Warning] (1187:47): "and True" is not needed
(31.5.2018 19:21:15) Executing script binary
(31.5.2018 19:21:15) Logging in...
(31.5.2018 19:21:16) Function GetDownloadURL BEGIN======================|
(31.5.2018 19:21:16) Global Var-Mode|0|
(31.5.2018 19:21:16) Global Var-DownloadURL||
(31.5.2018 19:21:16)       No IMDB URL.
(31.5.2018 19:21:16) Function GetDownloadURL END====================== with Mode=0 Result=D:\MyTestPVD\PersonalVideoDB_MOD\PersonalVideoDB2\portable.bat|
(31.5.2018 19:21:16) Searching movie information for: Blade Runner
(31.5.2018 19:21:16) Function ParsePage BEGIN======================|
(31.5.2018 19:21:16) Global Var-Mode|0|
(31.5.2018 19:21:16) Global Var-DownloadURL||
(31.5.2018 19:21:16) Local Var-URL|http://ia.media-imdb.com/images/M/MV5BNzQzMzJhZTEtOWM4NS00MTdhLTg0YjgtMjM4MDRkZjUwZDBlXkEyXkFqcGdeQXVyNjU0OTQ0OTY@.jpg|
(31.5.2018 19:21:17)   ParsePage smSearch|0|. Searching DownloadURL for MovieTitle |Blade Runner| MovieYear ||
(31.5.2018 19:21:17)       Searching in Provider:|https://www.imdb.com/search/title?title=Blade+Runner&title_type=feature&release_date=,&view=simple||
(31.5.2018 19:21:17) Function DownloadPage BEGIN======================|
(31.5.2018 19:21:17) Global Var-DownloadURL|https://www.imdb.com/search/title?title=Blade+Runner&title_type=feature&release_date=,&view=simple|
(31.5.2018 19:21:17)    Local Var-URL|https://www.imdb.com/search/title?title=Blade+Runner&title_type=feature&release_date=,&view=simple|
(31.5.2018 19:21:17)       Waiting 1s for delete:D:\MyTestPVD\PersonalVideoDB_MOD\PersonalVideoDB2\Scripts\downpage-UTF8_NO_BOM.htm
(31.5.2018 19:21:18)       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=Blade+Runner&title_type=feature&release_date=,&view=simple||
(31.5.2018 19:21:18)       Waiting 2s for exists of:D:\MyTestPVD\PersonalVideoDB_MOD\PersonalVideoDB2\Scripts\downpage-UTF8_NO_BOM.htm
(31.5.2018 19:21:20)       Now present file: D:\MyTestPVD\PersonalVideoDB_MOD\PersonalVideoDB2\Scripts\downpage-UTF8_NO_BOM.htm
Title: Re: Alternative
Post by: VVV_Easy_Programing on May 31, 2018, 08:22:58 pm
The Alfa 7 version:
http://vvveasy.altervista.org/wp-content/uploads/2018/05/PersonalVideoDB_MOD-V.Alfa_.7.zip (http://vvveasy.altervista.org/wp-content/uploads/2018/05/PersonalVideoDB_MOD-V.Alfa_.7.zip)

Corrected the important error of no waiting to finish of download (see down).

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.
----------------------------------------------------------------------------------------------------------------

Now the IMDB and the FA pages are very big. curl download writing directly over the file so now "PVdBDownPage.exe" wait to have all the page to pass  to the script. In the precedent versions, with Win_7 OS is normal that you get a lot of strange problems. I have done several test and it works with my speed of line and computer. Now the INTERNET_TEST_ITERATIONS   = 5 (so 10seg). If you get some alerts of no internet conexión you may increase.

Quote
(31.5.2018 19:22:12)       Now present file: D:\MyTestPVD\PersonalVideoDB_MOD\PersonalVideoDB6\Scripts\downpage-UTF8_NO_BOM.htm
(31.5.2018 19:22:18) Compiling script: IMDB_[EN][HTTPS].psf

Ivek23: I supose that in this moment you have got the crash "StackOverflow" window: It's not possible that PVD needs to compilate in the middle of runnig of script. In this moment we get a erratic working.
Title: Re: Alternative
Post by: Ivek23 on June 01, 2018, 08:03:36 am
The Alfa 7 version:

IMDB_ [EN] [HTTPS] script

Change the part of the code for posters I found today and have already repaired.

Before:
Code: [Select]
BASE_URL_IMAGE_PRE      = 'http://ia.media-imdb.com/images/M/'; //IMDB posters format: Full image: 'https://ia.media-imdb.com/images/M/MV5BMTI2MjI4NTgyNF5BMl5BanBnXkFtZTcwOTM5NzQ5MQ@@.jpg.
  BASE_URL_IMAGE_PRE_TRUE  = 'https://ia.media-imdb.com/images/M/';                //Resized image: 'https://ia.media-imdb.com/images/M/MV5BMTI2MjI4NTgyNF5BMl5BanBnXkFtZTcwOTM5NzQ5MQ@@._V1_UY50_CR0,0,34,50_AL_.jpg
                                                                         //                where the two last number are width and heigth

After:
Code: [Select]
BASE_URL_IMAGE_PRE      = 'http://ia.media-imdb.com/images/M/'; //IMDB posters format: Full image: 'https://ia.media-imdb.com/images/M/MV5BMTI2MjI4NTgyNF5BMl5BanBnXkFtZTcwOTM5NzQ5MQ@@.jpg.
  BASE_URL_IMAGE_PRE_TRUE  = 'https://m.media-amazon.com/images/M/';
  //BASE_URL_IMAGE_PRE_TRUE  = 'https://ia.media-imdb.com/images/M/';                //Resized image: 'https://ia.media-imdb.com/images/M/MV5BMTI2MjI4NTgyNF5BMl5BanBnXkFtZTcwOTM5NzQ5MQ@@._V1_UY50_CR0,0,34,50_AL_.jpg
                                                                         //                where the two last number are width and heigth

For now, the scriprt works ok. We will see what will be after several tests.
Title: Re: Alternative
Post by: Ivek23 on June 01, 2018, 08:19:27 pm
IMDB_ [EN] [HTTPS] script

In IMDB_ [EN] [HTTPS] script is an error in downloading Full AKA info as well as Original Title for Buffalo Bill, l'eroe del far west (http://www.imdb.com/title/tt0074254/releaseinfo) movie. This error has been from the beginning of IMDB_ [EN] [HTTPS] script.
Title: Re: Alternative
Post by: Ivek23 on June 02, 2018, 06:52:20 am
IMDB_ [EN] [HTTPS] script

Alexander Hamilton movie (https://www.imdb.com/title/tt0021595/releaseinfo)
Alexander Jamieson movie (https://www.imdb.com/title/tt1226736/releaseinfo)

I've corrected a part of the code in Function ParsePage_IMDBMovieAKA.
Quote
Function ParsePage_IMDBMovieAKA(HTML:String):Cardinal; //BlockOpen
    //Returns:
    //     Result:=prFinished; Script has finished gathering data
    //     Result:=prError; If not results
    //Retrieve: ~aka~ "Also Known As"
  Var
    debug_pos1 : Integer;
    curPos,endPos,index:Integer;
    ItemValue,ItemList:String;
    ItemArray: TWideArray;
  Begin
    LogMessage('Function ParsePage_IMDBMovieAKA BEGIN=====================||');
    //Get ~aka~ (several values in a line break separated list) Be careful don't repeat
    //Go to "Also Known As"
    curPos:=Pos('<h4 class="li_group">Also Known As (AKA)',HTML);                      //Strings start which opens the block content data. WEB_SPECIFIC
    curPos:=PosFrom('</h4>',HTML,curPos);                                              //Strings end which opens the block content data.  WEB_SPECIFIC
    curPos:=curPos+Length('</h4>');                                                    //Strings end which opens the block content data.  WEB_SPECIFIC
    //Get all "raw" list aka for create good values separators
    endPos:=PosFrom('</table>',HTML,curPos);                                            //Strings which opens/closes the data. WEB_SPECIFIC
    ItemList:=Copy(HTML,curPos,endPos-curPos);
    ItemList:=StringReplace(ItemList,'</td>',';',True,True,False);                     //WEB_SPECIFIC
    //Get all aka list (NOT necesary in raw because: Several couple of valors (Country/title) but the first is the original title
    ItemList:=RemoveTags(ItemList, False);
    //LogMessage('           Parse results ('+IntToStr(curPos)+','+IntToStr(endPos)+') complex ItemList:'+ItemList+'||');List+'||');
    ExplodeString(ItemList,ItemArray,';');
    ItemValue:='';
    For index:=(Low(ItemArray)+1) To (High(ItemArray)/2) Do Begin        //Remember index begin in 0
      If index=1 Then Begin  // The first is the original title. WEB_SPECIFIC
         AddFieldValueXML('origtitle',ItemArray[(index*2-1)]);
         LogMessage('      Get result origtitle:'+ItemArray[(index*2-1)]+'||');
      End Else Begin
         //Verify if we get before the same title
         If Pos(ItemArray[(index*2-1)],ItemValue)=0 Then ItemValue:=ItemValue+'<br>'+ItemArray[(index*2-1)];
      End;       
    End;
    debug_pos1:=Pos('}})',ItemValue);
    if debug_pos1 >0 then ItemValue := Copy(ItemValue,0,debug_pos1-1);

    AddFieldValueXML('aka',ItemValue);
    LogMessage('      Get results aka:'+ItemValue+'||');
    Result:=prFinished;
    LogMessage('Function ParsePage_IMDBMovieAKA END=====================||');
  End; //BlockClose
An error occurs when a record is on the web page.
Quote
Also Known As (AKA)
It looks like we don't have any AKAs for this title yet.

Be the first to contribute! Just click the "Edit page" button at the bottom of the page or learn more in the AKAs submission guide.
Title: Re: Alternative
Post by: VVV_Easy_Programing on June 02, 2018, 11:58:56 am
The Alfa 8 version ONLY SCRIPT FOLDER:
http://vvveasy.altervista.org/wp-content/uploads/2018/06/Scripts-V.Alfa_.8.zip (http://vvveasy.altervista.org/wp-content/uploads/2018/06/Scripts-V.Alfa_.8.zip)

Corrected the BASE_URL_IMAGE_PRE_TRUE and the AKA errors and others (see down). Added the people script "IMDB_People_[EN][HTTPS]" (the last)

Change the ancient folder for the new folder. 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.
----------------------------------------------------------------------------------------------------------------
I prefer correct the AKA no results with a comprobation in the beginnig of the subrutine:
Quote
    Result:=prFinished;
    if (Pos('It looks like we don'+Chr(39)+'t have any AKAs for this title yet.',HTML)>0) then Exit;

I think that the problema of "Buffalo Bill, l'eroe del far west" is the comma because it get the countries. It's NOT corrected but I have some ideas. Stay tunned.

Title: Re: Alternative
Post by: Ivek23 on June 02, 2018, 03:44:33 pm
IMDB_ [EN] [HTTPS] script

Plot Keywords (~ category ~ "keywords") has not been on Imdb web sites for a long time as an area Category (also in PVD for a long time, the Category field is empty), but this information is taken as Tags and the info is transferred to the PVD Tags normal field.

This part of the code is now modified as seen below, which is of course also correct and so it should remain (Imdb plugin also equals to transfer this information into the same field).


Quote
    //Get ~category~ "keywords" (field with several values in a comma separated list)
    curPos:=Pos('<h4 class="inline">Plot Keywords:</h4>',HTML);                                      //WEB_SPECIFIC.IC.
    If 0<curPos Then Begin       
       ItemValue:=TextBetWeen(HTML,'<h4 class="inline">Plot Keywords:</h4>','<a href="/title/',false,curPos);  //Strings which opens/closes the data. WEB_SPECIFIC
       ItemValue:=StringReplace(ItemValue,'|',',',True,True,False);                                  //Change the separator to comma
       //AddFieldValueXML('category',ItemValue);
       AddFieldValueXML('tags',ItemValue);       
       LogMessage('      Get results Tags:'+ItemValue+'||');

       //LogMessage('      Get results Category:'+ItemValue+'||');
    End; 
Title: Re: Alternative
Post by: Ivek23 on June 03, 2018, 08:16:51 am
IMDB_ [EN] [HTTPS] script

Before:
Quote
  BASE_URL_PERSON_PRE      = 'https://www.imdb.com/name/';      //The traditional BASE_UR to person ID 'httpS://www.imdb.com/name/    nm0094036/'
  BASE_URL_PERSON_PRE_TRUE = 'https://www.imdb.com/name/';      //True actual link to person ID 'httpS://www.imdb.com/name/    nm0094036/'

Such a url for people is incorrect because the names for the actor, producer, or other categories of people are recorded separately because the URL is captured as a secure URL address.

After:
Quote
  BASE_URL_PERSON_PRE      = 'http://www.imdb.com/name/';      //The traditional BASE_UR to person ID 'httpS://www.imdb.com/name/    nm0094036/'
  BASE_URL_PERSON_PRE_TRUE = 'https://www.imdb.com/name/';      //True actual link to person ID 'httpS://www.imdb.com/name/    nm0094036/'

After changing the part of the code to a regular URL, now the names for the actor, producer, or other categories of people are recorded correctly, as it should be.
Title: Re: Alternative
Post by: VVV_Easy_Programing on June 03, 2018, 02:38:06 pm
The Alfa 9 version ONLY SCRIPT FOLDER .... we are near of Beta versión  ;D:
http://vvveasy.altervista.org/wp-content/uploads/2018/06/Scripts-V.Alfa_.9.zip (http://vvveasy.altervista.org/wp-content/uploads/2018/06/Scripts-V.Alfa_.9.zip)

Corrected: Https in persons, AKA empty values and Change "Get Length" parameter to "Get Feautures"  to retreive original movie technical spec (RunTime, languages, aspect,etc) in all scripts (Ivek23 sugestion-code)

Change the ancient folder for the new folder. 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.
----------------------------------------------------------------------------------------------------------------

Quote
Plot Keywords (~ category ~ "keywords") has not been on Imdb web sites for a long time as an area Category (also in PVD for a long time, the Category field is empty), but this information is taken as Tags and the info is transferred to the PVD Tags normal field.
In PVD there are three similar fields, with comma separated list and list filter capabilities and is not easy to differentiate.
We can see with an example, for instance with “The GodFather":
~genre~   = Genre
    IMDB= Drama, Crime
    TheMovieDB= Drama, Crime
    FilmAffinity= Drama
~category~ or ~tags~ (Plot Keywords)
    IMDB= Mafia, crime family, patriarch, organized crime, rise to power
    TheMovieDB=  Italy, loss of loved one, love at first sight, Italian american, europe, patriarch, organized crime, mafia, lawyer, crime, crime family, rise to power, mob boss, 1940s, 1950s
    FilmAffinity= Mafia. Crime. 1940s. 1950s. Family Relationships. Cult Movie.
For me, Mafia, Crime, 1940s or Cult Movie are categories of films but is true that nowadays, in internet, we use more Tags than Category.
Well how Category appears before in PVD, just below of Genre, I take this field and left Tags for a user use like own age certification.


Title: Re: Alternative
Post by: Ivek23 on June 05, 2018, 06:35:57 am
IMDB_ [EN] [HTTPS] script

Quote
    //Get ~description~
    curPos:=Pos('<span itemprop="description">',HTML);                                 //WEB_SPECIFIC.
    If 0<curPos Then Begin
       ItemValue:=TextBetWeen(HTML,'<span itemprop="description">','<em class="nobr">',false,curPos);   //Strings which opens/closes the data. WEB_SPECIFIC
       AddFieldValueXML('description',ItemValue);
       LogMessage('      Get result description:'+ItemValue+'||');
    End;
For 8 Mile, the previous description code did not transfer information. When I fix it, it works fine, as well as for other movie titles.
Quote
Function ParsePage_IMDBMovieBASE(HTML:String):Cardinal; //BlockOpen
    //Returns:
    //     Result:=prFinished; Script has finished gathering data
    //     Result:=prError; If not results
    //Retrieve: ~title~, ~year~, ~origtitle~, ~poster~ / ~imdbrating~, ~IMDB_Votes~ (Custom Field) / ~TOP_250~(Custom Field) /
    //          If Not(GET_FULL_CREDIT): ~crew~ctDirectors,ctWriters,ctComposers,ctProducers(Not in base page), ctActors
    //         ~description~ / ~category~ "keywords" / ~tagline~ / ~genre~
    //         If Not(GET_FULL_MPAA) ~mpaa~
    //         ~country~ / ~rdate~ in contry provider local IP geolocation
    //         If Not(GET_FULL_AKA) ~aka~.
    //         ~budget~ / ~money~ / ~studio~ "Production Co"
    //         If GET_FEATURES ~features~
  Var
      debug_pos1:Integer;
      curPos,endPos,index:Integer;
      ItemValue,ItemList:String;
      titleValue:String;
      Name,Role,PersonURL:String;
      IMDb_ID:String;
  Begin
    LogMessage('Function ParsePage_IMDBMovieBASE BEGIN======================|');
    //Because the script don't retreives the data in the page order a token search for the first curPos position is mandatory
    //Get ~IMDbID~   
    IMDb_ID:=StringReplace(DownloadURL,'https://www.imdb.com/title/','',True,False,False);
    IMDb_ID := StringReplace(IMDb_ID,'/','',True,False,False);
    AddCustomFieldValueByName('IMDbID',IMDb_ID);
    LogMessage('      Get result IMDbID:'+IMDb_ID+'||'); 
    //Get ~title~, ~year~, ~origtitle~, ~poster~
.
.
.
    //Get ~description~
    //curPos:=Pos('<span itemprop="description">',HTML);                                 //WEB_SPECIFIC.
    //If 0<curPos Then Begin
    //   ItemValue:=TextBetWeen(HTML,'<span itemprop="description">','<em class="nobr">',false,curPos);   //Strings which opens/closes the data. WEB_SPECIFIC
    //   AddFieldValueXML('description',ItemValue);
    //   LogMessage('      Get result description:'+ItemValue+'||');
    //End;
    //Get ~description~
    If Pos('<h2>Storyline</h2>',HTML)>0 then begin
    EndPos:= Pos('<h2>Storyline</h2>', HTML);
    curPos:=Pos('<h2>Storyline</h2>',HTML);                                 //WEB_SPECIFIC.
       If 0<curPos Then Begin
          ItemValue:=TextBetWeen(HTML,'<h2>Storyline</h2>','<span class="see-more inline">',false,curPos);   //Strings which opens/closes the data. WEB_SPECIFIC
          ItemValue := StringReplace(ItemValue, 'Industry information at your fingertips', '', true, false, true);
          ItemValue := StringReplace(ItemValue, 'Some parts of this page won'+#39+'t work property. Please reload or try later.', '', true, false, true);
          debug_pos1:=Pos('Written by',ItemValue);
          if debug_pos1 >0 then ItemValue := Copy(ItemValue,0,debug_pos1-1);
          AddFieldValueXML('description',ItemValue);
          LogMessage('      Get result description:'+ItemValue+'||');
       End;
    End;

Also added is the IMDB Id code.

I also redefined part of the budget code and box office code.
Before:
Quote
    //Get ~budget~
    curPos:=Pos('<h4 class="inline">Budget:</h4>',HTML);                                      //WEB_SPECIFIC
    If 0<curPos Then Begin       
       ItemValue:=TextBetWeen(HTML,'<h4 class="inline">Budget:</h4>','<',false,curPos);      //Strings which opens/closes the data. WEB_SPECIFIC
       AddFieldValueXML('budget',ItemValue);
       LogMessage('      Get results Budget:'+ItemValue+'||');
    End;       
    //Get ~money~ Box Office worldwide 
    curPos:=Pos('<h4 class="inline">Cumulative Worldwide Gross:</h4>',HTML);                                      //WEB_SPECIFIC
    If 0<curPos Then Begin       
       ItemValue:=TextBetWeen(HTML,'<h4 class="inline">Cumulative Worldwide Gross:</h4>','<',false,curPos);      //Strings which opens/closes the data. WEB_SPECIFIC
       AddFieldValueXML('money',ItemValue);
       LogMessage('      Get results Box Office worldwide:'+ItemValue+'||');
    End;

After:
Quote
    //Get ~budget~
    curPos:=Pos('<h4 class="inline">Budget:</h4>',HTML);                                      //WEB_SPECIFIC
    If 0<curPos Then Begin       
       ItemValue:=TextBetWeen(HTML,'<h4 class="inline">Budget:</h4>','<',false,curPos);      //Strings which opens/closes the data. WEB_SPECIFIC
       ItemValue:=StringReplace(ItemValue,#36,'',True,True,False);        //Eliminate '$' if exists 
       ItemValue:=StringReplace(ItemValue,',','',True,True,False);        //Eliminate ',' if exists       
       AddFieldValueXML('budget',ItemValue);
       LogMessage('      Get results Budget:'+ItemValue+'||');
    End;
    //Get ~money~ Box Office worldwide 
    curPos:=Pos('<h4 class="inline">Cumulative Worldwide Gross:</h4>',HTML);                                      //WEB_SPECIFIC
    If 0<curPos Then Begin       
       ItemValue:=TextBetWeen(HTML,'<h4 class="inline">Cumulative Worldwide Gross:</h4>','<',false,curPos);      //Strings which opens/closes the data. WEB_SPECIFIC
       ItemValue:=StringReplace(ItemValue,#36,'',True,True,False);        //Eliminate '$' if exists 
       ItemValue:=StringReplace(ItemValue,',','',True,True,False);        //Eliminate ',' if exists       
       AddFieldValueXML('money',ItemValue);
       LogMessage('      Get results Box Office worldwide:'+ItemValue+'||');
    End;

The code for Gross USA can also be used. So I have a budget code for the budget, Gross USA and a box office.
Quote
    //Get ~budget~
    curPos:=Pos('<h4 class="inline">Budget:</h4>',HTML);                                      //WEB_SPECIFIC
    If 0<curPos Then Begin       
       ItemValue:=TextBetWeen(HTML,'<h4 class="inline">Budget:</h4>','<',false,curPos);      //Strings which opens/closes the data. WEB_SPECIFIC
       ItemValue:=StringReplace(ItemValue,#36,'',True,True,False);        //Eliminate '$' if exists 
       ItemValue:=StringReplace(ItemValue,',','',True,True,False);        //Eliminate ',' if exists       
       AddFieldValueXML('budget',ItemValue);
       LogMessage('      Get results Budget:'+ItemValue+'||');
    End;
    //Get ~budget~
    curPos:=Pos('<h4 class="inline">Budget:</h4>',HTML);      //WEB_SPECIFIC
    If 0<curPos Then Begin       
       ItemValue:=StringReplace(TextBetWeen(HTML,'<h4 class="inline">Budget:</h4>','<',false,curPos),',','.',true, false, true);
       AddCustomFieldValueByName('Imdb Budget',ItemValue);
       LogMessage('      Get results Budget_1:'+ItemValue+'||');
    End;
    //Get ~money~ Gross USA 
    curPos:=Pos('<h4 class="inline">Gross USA:</h4>',HTML);                                      //WEB_SPECIFIC
    If 0<curPos Then Begin
       ItemValue:=TextBetWeen(HTML,'<h4 class="inline">Gross USA:</h4>','<',false,curPos);      //Strings which opens/closes the data. WEB_SPECIFIC
       ItemValue:=StringReplace(ItemValue,#36,'',True,True,False);        //Eliminate '$' if exists 
       ItemValue:=StringReplace(ItemValue,',','',True,True,False);        //Eliminate ',' if exists       
       AddFieldValueXML('money',ItemValue);
       LogMessage('      Get results Gross USA:'+ItemValue+'||');
    End;
    //Get ~money~ Gross USA 
    curPos:=Pos('<h4 class="inline">Gross USA:</h4>',HTML);                                      //WEB_SPECIFIC
    If 0<curPos Then Begin
       ItemValue:=StringReplace(TextBetWeen(HTML,'<h4 class="inline">Gross USA:</h4>','<',false,curPos),',','.',true, false, true);      //Strings which opens/closes the data. WEB_SPECIFIC
       AddCustomFieldValueByName('Gross USA:',ItemValue);
       LogMessage('      Get results Gross_USA:'+ItemValue+'||');
    End;         
    //Get ~money~ Box Office worldwide 
    curPos:=Pos('<h4 class="inline">Cumulative Worldwide Gross:</h4>',HTML);                                      //WEB_SPECIFIC
    If 0<curPos Then Begin       
       ItemValue:=TextBetWeen(HTML,'<h4 class="inline">Cumulative Worldwide Gross:</h4>','<',false,curPos);      //Strings which opens/closes the data. WEB_SPECIFIC
       AddFieldValueXML('money',ItemValue);
       AddCustomFieldValueByName('Imdb Box Office:',ItemValue);
       LogMessage('      Get results Box Office worldwide:'+ItemValue+'||');
    End;

The User Reviews code could also be added.
Title: Re: Alternative
Post by: Ivek23 on June 05, 2018, 06:37:35 am
IMDB_ [EN] [HTTPS] script

For Alexander the Great (2006) movie there is no download of the poster movie, although Alexander the Great (2006) is the Imdb website.

http://www.imdb.com/title/tt0480507/

Quote
(5.6.2018 7:01:22) PVD Version: 1.0.2.7
(5.6.2018 7:01:22) OS: Windows 7 Ultimate Edition
(5.6.2018 7:01:22) GlassFrame Enabled
(5.6.2018 7:01:22) Plugin loaded: csvimp.dll 0.1.3.1
(5.6.2018 7:01:23) Plugin loaded: mpexport.dll 0.1.0.2
(5.6.2018 7:01:23) Plugin loaded: msexcel.dll 0.4.1.0
(5.6.2018 7:01:23) Plugin loaded: plainexp.dll 0.7.1.2
(5.6.2018 7:01:23) Plugin loaded: scriptint.dll 0.3.0.2
(5.6.2018 7:01:23) Plugin loaded: valueconvert.dll 0.1.0.2
(5.6.2018 7:01:23) Compiling script: IMDB_[EN][HTTPS].psf
(5.6.2018 7:01:23) Script compiled successfully: IMDB_[EN][HTTPS].psf
[Warning] (1091:47): "and True" is not needed
(5.6.2018 7:01:23) Executing script binary
(5.6.2018 7:01:23) Compiling script: IMDB_[EN][HTTPS]1.psf
(5.6.2018 7:01:23) Script compiled successfully: IMDB_[EN][HTTPS]1.psf
[Warning] (1295:47): "and True" is not needed
(5.6.2018 7:01:23) Executing script binary
(5.6.2018 7:01:23) Compiling script: IMDB_[EN][HTTPS]3.psf
(5.6.2018 7:01:23) Script compiled successfully: IMDB_[EN][HTTPS]3.psf
[Warning] (795:47): "and True" is not needed
(5.6.2018 7:01:23) Executing script binary
(5.6.2018 7:01:23) Compiling script: PVdBScriptConfig.psf
(5.6.2018 7:01:23) Script compiled successfully: PVdBScriptConfig.psf
(5.6.2018 7:01:23) Executing script binary
(5.6.2018 7:01:23) Script loaded: IMDB_[EN][HTTPS].psf 1.0.0.0
(5.6.2018 7:01:23) Script loaded: IMDB_[EN][HTTPS]1.psf 1.0.0.0
(5.6.2018 7:01:23) Script loaded: IMDB_[EN][HTTPS]3.psf 1.0.0.0
(5.6.2018 7:01:23) Script loaded: PVdBScriptConfig.psf 1.0.0.0
(5.6.2018 7:01:24) Loading database: D:\MyTestPVD\PersonalVideoDB_MOD\PersonalVideoDB9\movies.pvd
(5.6.2018 7:01:25) Query time: 0 ms
(5.6.2018 7:30:36) Compiling script: IMDB_[EN][HTTPS].psf
(5.6.2018 7:30:36) Script compiled successfully: IMDB_[EN][HTTPS].psf
[Warning] (1091:47): "and True" is not needed
(5.6.2018 7:30:36) Executing script binary
(5.6.2018 7:30:36) Prijava v...
(5.6.2018 7:30:37) Function GetDownloadURL BEGIN======================|
(5.6.2018 7:30:37) Global Var-Mode|0|
(5.6.2018 7:30:37) Global Var-DownloadURL||
(5.6.2018 7:30:37)       IMDB URL.
(5.6.2018 7:30:37)       Parse stored information DownloadURL:https://www.imdb.com/title/tt0480507/||
(5.6.2018 7:30:37) Function GetDownloadURL END====================== with Mode=1 Result=D:\MyTestPVD\PersonalVideoDB_MOD\PersonalVideoDB9\portable.bat|
(5.6.2018 7:30:37) Iskanje Film Podatkov za: Alexander the Great
(5.6.2018 7:30:37) Function ParsePage BEGIN======================|
(5.6.2018 7:30:37) Global Var-Mode|1|
(5.6.2018 7:30:37) Global Var-DownloadURL|https://www.imdb.com/title/tt0480507/|
(5.6.2018 7:30:37) Local Var-URL||
(5.6.2018 7:30:37)   ParsePage mode smNormal|1|. Getting provider data for MovieID|tt0480507|
(5.6.2018 7:30:37)       Get result url:http://www.imdb.com/title/tt0480507/||
(5.6.2018 7:30:37) Function DownloadPage BEGIN======================|
(5.6.2018 7:30:37) Global Var-DownloadURL|https://www.imdb.com/title/tt0480507/|
(5.6.2018 7:30:37)    Local Var-URL|https://www.imdb.com/title/tt0480507/|
(5.6.2018 7:30:37)       Waiting 1s for delete:D:\MyTestPVD\PersonalVideoDB_MOD\PersonalVideoDB9\Scripts\downpage-UTF8_NO_BOM.htm
(5.6.2018 7:30:38)       Download with PVdBDownPage in file:|D:\MyTestPVD\PersonalVideoDB_MOD\PersonalVideoDB9\Scripts\downpage-UTF8_NO_BOM.htm the information of:|https://www.imdb.com/title/tt0480507/||
(5.6.2018 7:30:38)       Waiting 2s for exists of:D:\MyTestPVD\PersonalVideoDB_MOD\PersonalVideoDB9\Scripts\downpage-UTF8_NO_BOM.htm
(5.6.2018 7:30:40)       Waiting 2s for exists of:D:\MyTestPVD\PersonalVideoDB_MOD\PersonalVideoDB9\Scripts\downpage-UTF8_NO_BOM.htm
(5.6.2018 7:30:42)       Waiting 2s for exists of:D:\MyTestPVD\PersonalVideoDB_MOD\PersonalVideoDB9\Scripts\downpage-UTF8_NO_BOM.htm
(5.6.2018 7:30:45)       Now present complete page file: D:\MyTestPVD\PersonalVideoDB_MOD\PersonalVideoDB9\Scripts\downpage-UTF8_NO_BOM.htm
(5.6.2018 7:30:45) Function DownloadPage END======================|
(5.6.2018 7:30:45) Function ParsePage_IMDBMovieBASE BEGIN======================|
(5.6.2018 7:30:45)       Get result title:Alexander the Great||
(5.6.2018 7:30:45)       Get result year:2006||
(5.6.2018 7:30:45)       Get result origtitle:Alexander the Great||
(5.6.2018 7:30:45)       Get result imdbrating:5.5||
(5.6.2018 7:30:45)       Get result IMDB_Votes:196||
(5.6.2018 7:30:45)       Get result description:||
(5.6.2018 7:30:45)       Get results Category:king                        , character name in title            ,||
(5.6.2018 7:30:45)       Get result tagline:The Story of a Legend||
(5.6.2018 7:30:45)       Get results Genre:Animation||
(5.6.2018 7:30:45)       Get results Country:Italy||
(5.6.2018 7:30:45)       Get results Release Date:10.3.2006||
(5.6.2018 7:30:45)       Get results Studio/Production Co:Difarm Inc.||
(5.6.2018 7:30:45)       Get result Color:Color||
(5.6.2018 7:30:45)       Get result Aspect Ratio:1.85 : 1||
(5.6.2018 7:30:45)       Get result Movie Features:Color: Color<br>Aspect Ratio: 1.85 : 1<br>||
(5.6.2018 7:30:45) Function ParsePage_IMDBMovieBASE END=====================||
(5.6.2018 7:30:45) Function DownloadPage BEGIN======================|
(5.6.2018 7:30:45) Global Var-DownloadURL|https://www.imdb.com/title/tt0480507/releaseinfo?ref_=tt_dt_dt#akas|
(5.6.2018 7:30:45)    Local Var-URL|https://www.imdb.com/title/tt0480507/releaseinfo?ref_=tt_dt_dt#akas|
(5.6.2018 7:30:45)       Waiting 1s for delete:D:\MyTestPVD\PersonalVideoDB_MOD\PersonalVideoDB9\Scripts\downpage-UTF8_NO_BOM.htm
(5.6.2018 7:30:46)       Download with PVdBDownPage in file:|D:\MyTestPVD\PersonalVideoDB_MOD\PersonalVideoDB9\Scripts\downpage-UTF8_NO_BOM.htm the information of:|https://www.imdb.com/title/tt0480507/releaseinfo?ref_=tt_dt_dt#akas||
(5.6.2018 7:30:46)       Waiting 2s for exists of:D:\MyTestPVD\PersonalVideoDB_MOD\PersonalVideoDB9\Scripts\downpage-UTF8_NO_BOM.htm
(5.6.2018 7:30:48)       Waiting 2s for exists of:D:\MyTestPVD\PersonalVideoDB_MOD\PersonalVideoDB9\Scripts\downpage-UTF8_NO_BOM.htm
(5.6.2018 7:30:50)       Now present complete page file: D:\MyTestPVD\PersonalVideoDB_MOD\PersonalVideoDB9\Scripts\downpage-UTF8_NO_BOM.htm
(5.6.2018 7:30:50) Function DownloadPage END======================|
(5.6.2018 7:30:50) Function ParsePage_IMDBMovieAKA BEGIN=====================||
(5.6.2018 7:30:50)            Parse results (52285,52527) complex ItemList:                                                        Bulgaria (Bulgarian title)|                        Александър Велики|                        ||
(5.6.2018 7:30:50)       Get results aka:||
(5.6.2018 7:30:50) Function ParsePage_IMDBMovieAKA END=====================||
(5.6.2018 7:30:50) Function DownloadPage BEGIN======================|
(5.6.2018 7:30:50) Global Var-DownloadURL|https://www.imdb.com/title/tt0480507/fullcredits?ref_=tt_cl_sm#cast|
(5.6.2018 7:30:50)    Local Var-URL|https://www.imdb.com/title/tt0480507/fullcredits?ref_=tt_cl_sm#cast|
(5.6.2018 7:30:50)       Waiting 1s for delete:D:\MyTestPVD\PersonalVideoDB_MOD\PersonalVideoDB9\Scripts\downpage-UTF8_NO_BOM.htm
(5.6.2018 7:30:51)       Download with PVdBDownPage in file:|D:\MyTestPVD\PersonalVideoDB_MOD\PersonalVideoDB9\Scripts\downpage-UTF8_NO_BOM.htm the information of:|https://www.imdb.com/title/tt0480507/fullcredits?ref_=tt_cl_sm#cast||
(5.6.2018 7:30:51)       Waiting 2s for exists of:D:\MyTestPVD\PersonalVideoDB_MOD\PersonalVideoDB9\Scripts\downpage-UTF8_NO_BOM.htm
(5.6.2018 7:30:53)       Waiting 2s for exists of:D:\MyTestPVD\PersonalVideoDB_MOD\PersonalVideoDB9\Scripts\downpage-UTF8_NO_BOM.htm
(5.6.2018 7:30:55)       Now present complete page file: D:\MyTestPVD\PersonalVideoDB_MOD\PersonalVideoDB9\Scripts\downpage-UTF8_NO_BOM.htm
(5.6.2018 7:30:55) Function DownloadPage END======================|
(5.6.2018 7:30:55) Function ParsePage_IMDBMovieCREDIT BEGIN=====================||
(5.6.2018 7:30:55)       Parse Results PersonURL:http://www.imdb.com/name/nm2034950/||
(5.6.2018 7:30:56)       Parse Results Name:Daehong Kim||
(5.6.2018 7:30:56)       Get results Director:#1|Daehong Kim|http://www.imdb.com/name/nm2034950/||ctDirectors
(5.6.2018 7:30:56)       Parse Results PersonURL:http://www.imdb.com/name/nm0960417/||
(5.6.2018 7:30:56)       Parse Results Name:Johnny Hartmann||
(5.6.2018 7:30:56)       Get results Writer:#1|Johnny Hartmann|http://www.imdb.com/name/nm0960417/||ctWriters
(5.6.2018 7:30:56)       Parse Results PersonURL:http://www.imdb.com/name/nm0768687/||
(5.6.2018 7:30:56)       Parse Results Name:Luciano Scaffa||
(5.6.2018 7:30:56)       Get results Writer:#2|Luciano Scaffa|http://www.imdb.com/name/nm0768687/||ctWriters
(5.6.2018 7:30:56)       Parse Results PersonURL:http://www.imdb.com/name/nm2038209/||
(5.6.2018 7:30:56)       Parse Results Name:Matteo Corradi||
(5.6.2018 7:30:56)       Get results Producers:#1|Matteo Corradi|http://www.imdb.com/name/nm2038209/||ctProducers
(5.6.2018 7:30:56)       Parse Results PersonURL:http://www.imdb.com/name/nm0180664/||
(5.6.2018 7:30:56)       Parse Results Name:Orlando Corradi||
(5.6.2018 7:30:56)       Get results Producers:#2|Orlando Corradi|http://www.imdb.com/name/nm0180664/||ctProducers
(5.6.2018 7:30:56)       Parse Results PersonURL:http://www.imdb.com/name/nm0228147/||
(5.6.2018 7:30:56)       Parse Results Name:Mark A.Z. Dippé||
(5.6.2018 7:30:56)       Get results Producers:#3|Mark A.Z. Dippé|http://www.imdb.com/name/nm0228147/||ctProducers
(5.6.2018 7:30:56)       Parse Results PersonURL:http://www.imdb.com/name/nm1545935/||
(5.6.2018 7:30:56)       Parse Results Name:Jong Han Kim||
(5.6.2018 7:30:56)       Get results Producers:#4|Jong Han Kim|http://www.imdb.com/name/nm1545935/||ctProducers
(5.6.2018 7:30:56)       Parse Results PersonURL:http://www.imdb.com/name/nm1098194/||
(5.6.2018 7:30:56)       Parse Results Name:Youngki Lee||
(5.6.2018 7:30:56)       Get results Producers:#5|Youngki Lee|http://www.imdb.com/name/nm1098194/||ctProducers
(5.6.2018 7:30:56)       Parse Results PersonURL:http://www.imdb.com/name/nm2034950/||
(5.6.2018 7:30:56)       Parse Results Name:Daehong Kim||
(5.6.2018 7:30:56)       Get results Composers:#1|Daehong Kim|http://www.imdb.com/name/nm2034950/||ctComposers
(5.6.2018 7:30:56)       Parse Results PersonURL:http://www.imdb.com/name/nm0010486/||
(5.6.2018 7:30:56)       Parse Results Name:Mark Adair-Rios||
(5.6.2018 7:30:56)       Parse Results Role:Alexander       (voice)||
(5.6.2018 7:30:56)       Get results cast:#1|Mark Adair-Rios|Alexander       (voice)|http://www.imdb.com/name/nm0010486/||ctActors
(5.6.2018 7:30:56)       Parse Results PersonURL:http://www.imdb.com/name/nm0178875/||
(5.6.2018 7:30:56)       Parse Results Name:Chris Coppola||
(5.6.2018 7:30:56)       Parse Results Role:Darius       (voice)||
(5.6.2018 7:30:56)       Get results cast:#2|Chris Coppola|Darius       (voice)|http://www.imdb.com/name/nm0178875/||ctActors
(5.6.2018 7:30:56)       Parse Results PersonURL:http://www.imdb.com/name/nm2279608/||
(5.6.2018 7:30:56)       Parse Results Name:Nicolai Dorian||
(5.6.2018 7:30:56)       Parse Results Role:Boy Alexander       (voice)||
(5.6.2018 7:30:56)       Get results cast:#3|Nicolai Dorian|Boy Alexander       (voice)|http://www.imdb.com/name/nm2279608/||ctActors
(5.6.2018 7:30:56)       Parse Results PersonURL:http://www.imdb.com/name/nm2338214/||
(5.6.2018 7:30:56)       Parse Results Name:Ronn Ozuk||
(5.6.2018 7:30:56)       Parse Results Role:Aristotle /              Oxyathres       (voice)||
(5.6.2018 7:30:56)       Get results cast:#4|Ronn Ozuk|Aristotle /              Oxyathres       (voice)|http://www.imdb.com/name/nm2338214/||ctActors
(5.6.2018 7:30:56) Function ParsePage_IMDBMovieCREDIT END=====================||
(5.6.2018 7:30:56) Function DownloadPage BEGIN======================|
(5.6.2018 7:30:56) Global Var-DownloadURL|https://www.imdb.com/title/tt0480507/awards?ref_=tt_awd|
(5.6.2018 7:30:56)    Local Var-URL|https://www.imdb.com/title/tt0480507/awards?ref_=tt_awd|
(5.6.2018 7:30:56)       Waiting 1s for delete:D:\MyTestPVD\PersonalVideoDB_MOD\PersonalVideoDB9\Scripts\downpage-UTF8_NO_BOM.htm
(5.6.2018 7:30:57)       Download with PVdBDownPage in file:|D:\MyTestPVD\PersonalVideoDB_MOD\PersonalVideoDB9\Scripts\downpage-UTF8_NO_BOM.htm the information of:|https://www.imdb.com/title/tt0480507/awards?ref_=tt_awd||
(5.6.2018 7:30:57)       Waiting 2s for exists of:D:\MyTestPVD\PersonalVideoDB_MOD\PersonalVideoDB9\Scripts\downpage-UTF8_NO_BOM.htm
(5.6.2018 7:30:59)       Waiting 2s for exists of:D:\MyTestPVD\PersonalVideoDB_MOD\PersonalVideoDB9\Scripts\downpage-UTF8_NO_BOM.htm
(5.6.2018 7:31:01)       Now present complete page file: D:\MyTestPVD\PersonalVideoDB_MOD\PersonalVideoDB9\Scripts\downpage-UTF8_NO_BOM.htm
(5.6.2018 7:31:01) Function DownloadPage END======================|
(5.6.2018 7:31:01) Function ParsePage_IMDBMovieAWARDS BEGIN=====================||
(5.6.2018 7:31:01) Function ParsePage_IMDBMovieAWARDS END=====================||
(5.6.2018 7:31:01) Function DownloadPage BEGIN======================|
(5.6.2018 7:31:01) Global Var-DownloadURL|http://www.imdb.com/title/tt0480507/parentalguide?ref_=tt_stry_pg#certification|
(5.6.2018 7:31:01)    Local Var-URL|http://www.imdb.com/title/tt0480507/parentalguide?ref_=tt_stry_pg#certification|
(5.6.2018 7:31:01)       Waiting 1s for delete:D:\MyTestPVD\PersonalVideoDB_MOD\PersonalVideoDB9\Scripts\downpage-UTF8_NO_BOM.htm
(5.6.2018 7:31:02)       Download with PVdBDownPage in file:|D:\MyTestPVD\PersonalVideoDB_MOD\PersonalVideoDB9\Scripts\downpage-UTF8_NO_BOM.htm the information of:|http://www.imdb.com/title/tt0480507/parentalguide?ref_=tt_stry_pg#certification||
(5.6.2018 7:31:02)       Waiting 2s for exists of:D:\MyTestPVD\PersonalVideoDB_MOD\PersonalVideoDB9\Scripts\downpage-UTF8_NO_BOM.htm
(5.6.2018 7:31:04)       Waiting 2s for exists of:D:\MyTestPVD\PersonalVideoDB_MOD\PersonalVideoDB9\Scripts\downpage-UTF8_NO_BOM.htm
(5.6.2018 7:31:07)       Now present complete page file: D:\MyTestPVD\PersonalVideoDB_MOD\PersonalVideoDB9\Scripts\downpage-UTF8_NO_BOM.htm
(5.6.2018 7:31:07) Function DownloadPage END======================|
(5.6.2018 7:31:07) Function ParsePage_IMDBMovieMPAA BEGIN=====================||
(5.6.2018 7:31:07)       MPAA.USA.Corrected:||
(5.6.2018 7:31:07)       Get result MPAA=||
(5.6.2018 7:31:07) Function ParsePage_IMDBMovieMPAA END=====================||
(5.6.2018 7:31:07)     Provider data info retreived Ok in 2018-06-05 07:31:07|
(5.6.2018 7:31:07) Function ParsePage NORMAL END======================|
Title: Re: Alternative
Post by: Ivek23 on June 05, 2018, 06:48:49 am
IMDB_People_[EN][HTTPS]

You can add altnames, birthplace, full bio and even awards, if possible. I use the most Imdb for peoples information, and occasionally also the TMDB (which is extremely rare) is also considered.

Title: Re: Alternative
Post by: Ivek23 on June 05, 2018, 07:03:12 am
IMDB_ [EN] [HTTPS] script

For Alexander the Great (2006) movie there is no download of the Aka info, although Alexander the Great (2006) is the Imdb website.

http://www.imdb.com/title/tt0480507/

Log record is already published.
Title: Re: Alternative
Post by: VVV_Easy_Programing on June 05, 2018, 08:43:48 pm
The Beta 1 version
http://vvveasy.altervista.org/wp-content/uploads/2018/06/PersonalVideoDB_MOD-V.Beta_.1.zip (http://vvveasy.altervista.org/wp-content/uploads/2018/06/PersonalVideoDB_MOD-V.Beta_.1.zip)

Beta Testers: Run NOW with "debug.bat". So if you have problems, please is very important the name of the movie and attach the file: PersonalVideoDB\log.txt   

----------------------------------------------------------------------------------------------------------------
"Dirty" own collection adaptation:
Important: Make a secure copy and a test copy of your own actual PDV installation.
Unzip the beta versión and change the folders: Scripts and Plugings of your test copy.
Run PVD in portable mode (portable.bat) without internet proxi.
In Preferences/Movies/Custom Ítems add the fields:
Set (Short Text), TOP_250 (Number), IMDB_Votes (Number), TheMoviedb_Votes (Number), FilmAffinity_Votes (Number)
----------------------------------------------------------------------------------------------------------------
Corrected:
1) Alexander the Great (2006) aka and poster issues.
2) The 8 Mile description issue
3) Added the ~Budget~ and ~money~ corrections (Ivek23 code)

Ivek23:
Quote
The code for Gross USA can also be used. So I have a budget code for the budget, Gross USA and a box office.
Quote
The User Reviews code could also be added.
In the base versión, I don't want add a lot of customs fields. We can let to the users reclaim it.
Quote
Also added is the IMDB Id code.
This is more a PVD work than a download parse routine work. So I put in line 1132 with a optimiced code.

Quote
IMDB_People_[EN][HTTPS]
You can add altnames, birthplace, full bio and even awards, if possible. I use the most Imdb for peoples information, and occasionally also the TMDB (which is extremely rare) is also considered.
There is a lot of work in this point. The People explotation is not very used (even it not work very well in PVD) so I want first publish a PVD_MOD funtional versión with several working languages: (EN, ES, FR in TheMovieDB) and (ES, EN in FilmAffinity)


Title: Re: Alternative
Post by: Ivek23 on June 07, 2018, 06:43:05 pm
Quote
Also added is the IMDB Id code.
This is more a PVD work than a download parse routine work. So I put in line 1132 with a optimiced code.

I apologize because we did not understand this correctly (it was the speed at making the post due to the weather). Added IMDB Id code was meant for the IMDbID custom field.

It is also suggested to add the Technical Specs and User Reviews and Custom Fields codes, since these two were also in the Imdb movie plugin.
Title: Re: Alternative
Post by: Ivek23 on June 07, 2018, 06:43:26 pm
Quote
IMDB_People_[EN][HTTPS]
You can add altnames, birthplace, full bio and even awards, if possible. I use the most Imdb for peoples information, and occasionally also the TMDB (which is extremely rare) is also considered.
There is a lot of work in this point. The People explotation is not very used (even it not work very well in PVD) so I want first publish a PVD_MOD funtional versión with several working languages: (EN, ES, FR in TheMovieDB) and (ES, EN in FilmAffinity)

Hmm, I do not know what the users of the Russian section of the forum will say.

Namely, yesterday I saw a record in the Russian section of the forum in response to Imdb movie plugin problems. There it is written that we are preparing an alternative for a PVD program that will support a secure HTTPS connection for downloading movie and people information from Imdb and other websites.

It was especially emphasized that they want us to make this alternative, called PVD MOD, which we already have in the beta version, succeed and successfully bring it to the final version for all users.
Title: Re: Alternative
Post by: VVV_Easy_Programing on June 08, 2018, 07:35:49 am
We are near to publish a "complete" beta versión. Some anwsers:
Quote
It is also suggested to add the Technical Specs and User Reviews and Custom Fields codes, since these two were also in the Imdb movie plugin.
In the last beta, I put the Movie Technical Specs in the ~features~ field in all scripts. It seems the "thought" of Nostra for this field.
Today the MOD version has 5 custom fields:
Set (Short Text), TOP_250 (Number), IMDB_Votes (Number), TheMoviedb_Votes (Number), FilmAffinity_Votes (Number)
I would like to use the most of the PVD fields and not have to increase more custom fields until the version was stable.
For instance IMDB_ID is easily got from URL movie: string between the "http://www.imdb.com/title/" and "/" (line 1132-Beta 1).
Quote
... users of the Russian section ...
Great! I suppose there are many Russian PVD users. The translated versions of the scripts are made with ecobyte-ReplaceText and a file translation file text. I'll include this files in the next versión for further languages.
BTW, I don't see too many returns from the users now so I hope that when we publish the first version the people will start using it and telling us their discovers (bugs) and their wishes.
Today, I have two main "concerns": people who leave PVD because it does not work and new people who enter in the PVD page and can not find an easy functional version to use.
Title: Re: Alternative
Post by: Ivek23 on June 10, 2018, 07:12:35 am
The Beta 1 version

IMDB_ [EN] [HTTPS] script


Example:
Poster for Alexander Jamieson (http://www.imdb.com/title/tt1226736/) movie is in 7200*10800 resolution, which is very too long and long lasts, and then opens for a long time in PVD.

The proposal for the highest uploaded resolution of the posters should be 1200*1500, which is the limit that then works fine for the good functioning of PVD.

For the description, it is necessary to change the condemned part of the code with this part of the code added below.
Quote
Function ParsePage_IMDBMovieBASE(HTML:String):Cardinal; //BlockOpen
    //Returns:
    //     Result:=prFinished; Script has finished gathering data
    //     Result:=prError; If not results
    //Retrieve: ~title~, ~year~, ~origtitle~, ~poster~ / ~imdbrating~, ~IMDB_Votes~ (Custom Field) / ~TOP_250~(Custom Field) /
    //          If Not(GET_FULL_CREDIT): ~crew~ctDirectors,ctWriters,ctComposers,ctProducers(Not in base page), ctActors
    //         ~description~ / ~category~ "keywords" / ~tagline~ / ~genre~
    //         If Not(GET_FULL_MPAA) ~mpaa~
    //         ~country~ / ~rdate~ in contry provider local IP geolocation
    //         If Not(GET_FULL_AKA) ~aka~.
    //         ~budget~ / ~money~ / ~studio~ "Production Co"
    //         If GET_FEATURES ~features~
  Var
      debug_pos1:Integer;
      curPos,endPos,index:Integer;
      ItemValue,ItemList:String;
      titleValue:String;
      Name,Role,PersonURL:String;
      IMDb_ID:String;
  Begin
.
.
.
    //Get ~description~
    If Pos('<h2>Storyline</h2>',HTML)>0 then begin
    EndPos:= Pos('<h2>Storyline</h2>', HTML);
    curPos:=Pos('<h2>Storyline</h2>',HTML);                                 //WEB_SPECIFIC.
       If 0<curPos Then Begin
          ItemValue:=TextBetWeen(HTML,'<h2>Storyline</h2>','<span class="see-more inline">',false,curPos);   //Strings which opens/closes the data. WEB_SPECIFIC
          ItemValue := StringReplace(ItemValue, 'Industry information at your fingertips', '', true, false, true);
          ItemValue := StringReplace(ItemValue, 'Some parts of this page won'+#39+'t work property. Please reload or try later.', '', true, false, true);
          debug_pos1:=Pos('Written by',ItemValue);
          if debug_pos1 >0 then ItemValue := Copy(ItemValue,0,debug_pos1-1);
          AddFieldValueXML('description',ItemValue);
          LogMessage('      Get result description:'+ItemValue+'||');
       End;
    End;
This part of the code passes every description, which is and exists on the website.

Small fixes in code sections for Runtime
Quote
        //Get "Runtime" (in minutes)
        curPos:=Pos('<h4 class="inline">Runtime:</h4>',HTML);                                      //WEB_SPECIFIC.
        If 0<curPos Then Begin 
            ItemValue:=TextBetWeen(HTML,'M">',' min</time>',false,curPos);  //Strings which opens/closes the data. WEB_SPECIFIC
            ItemList:=ItemList+'Original Runtime: '+ItemValue+' min.<br>';
            LogMessage('      Get result Original Runtime:'+ItemValue+'||');
            AddFieldValue(mfDuration,ItemValue);
            LogMessage('      Get result lenght:'+ItemValue+'||');
        End;

Sound Mix
Quote
        //Get "Sound Mix" (several values in a comma separated list)
        curPos:=Pos('<h4 class="inline">Sound Mix:</h4>',HTML);
        if 0<curPos then begin       
            ItemValue:=RemoveTags(TextBetWeen(HTML,'<h4 class="inline">Sound Mix:</h4>','</div>',false,curPos), false); //WEB_SPECIFIC.
            ItemValue:=StringReplace(ItemValue,'|        ',', ',True,True,False);                                    //WEB_SPECIFIC.
            ItemValue:=StringReplace(ItemValue,'(', ' (',True,True,False);
            ItemList:=ItemList+'Sound Mix: '+ItemValue+'<br>';
            LogMessage('      Get result Sound Mix:'+ItemValue+'||');
        End;

Color
Quote
        //Get "Color" (several values in a comma separated list)
        curPos:=Pos('<h4 class="inline">Color:</h4>',HTML);
        if 0<curPos then begin       
            ItemValue:=TextBetWeen(HTML,'<h4 class="inline">Color:</h4>','</div>',false,curPos);
            ItemValue:=StringReplace(ItemValue,'|        ',', ',True,True,False);                                    //WEB_SPECIFIC.
            ItemValue:=StringReplace(ItemValue,'(', ' (',True,True,False);

            ItemList:=ItemList+'Color: '+ItemValue+'<br>';
            LogMessage('      Get result Color:'+ItemValue+'||');
        End;
Title: Re: Alternative
Post by: VVV_Easy_Programing on June 10, 2018, 10:07:17 am
The Beta 2 Release Candidate version with (EN, ES, FR in TheMovieDB) and (ES, EN in FilmAffinity) (you can hide/activate in Script Configuration).

http://vvveasy.altervista.org/wp-content/uploads/2018/06/PersonalVideoDB_MOD-V.Beta_.2.RC_.zip (http://vvveasy.altervista.org/wp-content/uploads/2018/06/PersonalVideoDB_MOD-V.Beta_.2.RC_.zip)

Beta Testers: Run NOW with "debug.bat". So if you have problems, please is very important the name of the movie and attach the file: PersonalVideoDB\log.txt   

----------------------------------------------------------------------------------------------------------------
"Dirty" own PVD installation/collection adaptation:
Important: Make a secure copy and a test copy of your own actual PDV installation.
Unzip the beta versión and change the folders: Scripts and Plugings of your test copy.
Run PVD in portable mode (portable.bat) without internet proxi.
In Preferences/Movies/Custom Ítems add the fields:
Set (Short Text), TOP_250 (Number), IMDB_Votes (Number), TheMoviedb_Votes (Number), FilmAffinity_Votes (Number)
----------------------------------------------------------------------------------------------------------------
Corrected:
1) Description issues (Ivek23 code).
2) Small fixes in code sections for Runtime (Ivek23 code)
3) Added birthplace in IMDB People
4) IMDB images begin to redirect to HTTPS URL's so added a DownloadImage function in order to download Movie Poster and People Photo by the script and not by PVD Get funtion. Not applied (still?) to the SearchList posters/photos because we would need a lot of intermediate files (better use TheMovieDB script to identify the movie/person and their IMDB ID).

Ivek23:
Quote
The proposal for the highest uploaded resolution of the posters should be 1200*1500, which is the limit that then works fine for the good functioning of PVD.

I'm agree and I know that if the script add some numbers in the image url name it can ask for a dowload size, but I don't know very well if it is universal.
Have you some informations or code proposals in this line?
Title: Re: Alternative
Post by: Ivek23 on June 10, 2018, 02:32:27 pm
IMDB_ [EN] [HTTPS] script

The Beta 2 Release Candidate version

Ivek23:
Quote
The proposal for the highest uploaded resolution of the posters should be 1200*1500, which is the limit that then works fine for the good functioning of PVD.

I'm agree and I know that if the script add some numbers in the image url name it can ask for a dowload size, but I don't know very well if it is universal.
Have you some informations or code proposals in this line?

Perhaps this part of the code is just the right solution for the resolution of posters.

Quote
    //Get ~title~, ~year~, ~origtitle~, ~poster~
    //Get all "raw" title summary (in raw because we need the hidden links, we avoid "complete" token in strings which opens/closes)
    ItemList:=TextBetWeenFirst(HTML,'<div class="title_wrapper"','div class="plot_summary_wrapper">'); //WEB_SPECIFIC.
    If (Length(ItemList)>0) Then Begin           
        titleValue:=TextBetWeenFirst(ItemList,'<h1 itemprop="name" class="">','<');       //Strings which opens/closes the data. WEB_SPECIFIC
        AddFieldValueXML('title',titleValue);
        LogMessage('      Get result title:'+titleValue+'||');
        ItemValue:=TextBetWeenFirst(ItemList,'(',')');                                 //Strings which opens/closes the data. WEB_SPECIFIC
        AddFieldValueXML('year',ItemValue);
        LogMessage('      Get result year:'+ItemValue+'||');
        ItemValue:=TextBetWeenFirst(ItemList,'<div class="originalTitle">','<');          //Strings which opens/closes the data. WEB_SPECIFIC
        If (Length(ItemValue)=0) Then ItemValue:=titleValue;                           //Provider hides the original title if same that title. WEB_SPECIFIC
        AddFieldValueXML('origtitle',ItemValue);
        LogMessage('      Get result origtitle:'+ItemValue+'||');
        ItemValue:=TextBetWeenFirst(ItemList,BASE_URL_IMAGE_PRE_TRUE,'.');                 //Get poster code. Strings which opens/closes the data. WEB_SPECIFIC
        if (Length(ItemValue)>0) then ItemValue:=BASE_URL_IMAGE_PRE + ItemValue + '._V1_UY1200_.jpg';    //WEB_SPECIFIC
        if ItemValue <> '' then AddImageURL(itPoster,ItemValue)
        else AddImageURL(itPoster,'http://ia.media-imdb.com/images/G/01/imdb/images/logos/imdb_fb_logo-1730868325._CB499606982_.png');

        LogMessage('      Get result poster:'+ItemValue+'||');
    End;

It works, but we'll see more tests if it's really the way it should be.
Title: Re: Alternative
Post by: Ivek23 on June 10, 2018, 03:09:13 pm
Also, Imdb Movie Poster script can help in the solution of posters.

[Imdb Movie Poster script is an added.


IMDB_ [EN] [HTTPS] script

The Beta 2 Release Candidate version

Ivek23:
Quote
The proposal for the highest uploaded resolution of the posters should be 1200*1500, which is the limit that then works fine for the good functioning of PVD.

I'm agree and I know that if the script add some numbers in the image url name it can ask for a dowload size, but I don't know very well if it is universal.
Have you some informations or code proposals in this line?

Perhaps this part of the code is just the right solution for the resolution of posters.

Quote
    //Get ~title~, ~year~, ~origtitle~, ~poster~
    //Get all "raw" title summary (in raw because we need the hidden links, we avoid "complete" token in strings which opens/closes)
    ItemList:=TextBetWeenFirst(HTML,'<div class="title_wrapper"','div class="plot_summary_wrapper">'); //WEB_SPECIFIC.
    If (Length(ItemList)>0) Then Begin           
        titleValue:=TextBetWeenFirst(ItemList,'<h1 itemprop="name" class="">','<');       //Strings which opens/closes the data. WEB_SPECIFIC
        AddFieldValueXML('title',titleValue);
        LogMessage('      Get result title:'+titleValue+'||');
        ItemValue:=TextBetWeenFirst(ItemList,'(',')');                                 //Strings which opens/closes the data. WEB_SPECIFIC
        AddFieldValueXML('year',ItemValue);
        LogMessage('      Get result year:'+ItemValue+'||');
        ItemValue:=TextBetWeenFirst(ItemList,'<div class="originalTitle">','<');          //Strings which opens/closes the data. WEB_SPECIFIC
        If (Length(ItemValue)=0) Then ItemValue:=titleValue;                           //Provider hides the original title if same that title. WEB_SPECIFIC
        AddFieldValueXML('origtitle',ItemValue);
        LogMessage('      Get result origtitle:'+ItemValue+'||');
        ItemValue:=TextBetWeenFirst(ItemList,BASE_URL_IMAGE_PRE_TRUE,'.');                 //Get poster code. Strings which opens/closes the data. WEB_SPECIFIC
        if (Length(ItemValue)>0) then ItemValue:=BASE_URL_IMAGE_PRE + ItemValue + '._V1_UY1200_.jpg';    //WEB_SPECIFIC
        if ItemValue <> '' then AddImageURL(itPoster,ItemValue)
        else AddImageURL(itPoster,'http://ia.media-imdb.com/images/G/01/imdb/images/logos/imdb_fb_logo-1730868325._CB499606982_.png');

        LogMessage('      Get result poster:'+ItemValue+'||');
    End;

It works, but we'll see more tests if it's really the way it should be.

._V1_UY1200_.jpg it also works fine in this ._V1_UY2048_.jpg resolution.
Title: Re: Alternative
Post by: Ivek23 on June 10, 2018, 04:18:02 pm
Beta 2 Release Candidate version

IMDB_ [EN] [HTTPS] script

Correction:

Quote
    //Get ~title~, ~year~, ~origtitle~, ~poster~
    //Get all "raw" title summary (in raw because we need the hidden links, we avoid "complete" token in strings which opens/closes)
    ItemList:=TextBetWeenFirst(HTML,'<div class="title_wrapper"','div class="plot_summary_wrapper">'); //WEB_SPECIFIC.
    If (Length(ItemList)>0) Then Begin           
        titleValue:=TextBetWeenFirst(ItemList,'<h1 itemprop="name" class="">','<');       //Strings which opens/closes the data. WEB_SPECIFIC
        AddFieldValueXML('title',titleValue);
        LogMessage('      Get result title:'+titleValue+'||');
        ItemValue:=TextBetWeenFirst(ItemList,'(',')');                                 //Strings which opens/closes the data. WEB_SPECIFIC
        AddFieldValueXML('year',ItemValue);
        LogMessage('      Get result year:'+ItemValue+'||');
        ItemValue:=TextBetWeenFirst(ItemList,'<div class="originalTitle">','<');          //Strings which opens/closes the data. WEB_SPECIFIC
        If (Length(ItemValue)=0) Then ItemValue:=titleValue;                           //Provider hides the original title if same that title. WEB_SPECIFIC
        AddFieldValueXML('origtitle',ItemValue);
        LogMessage('      Get result origtitle:'+ItemValue+'||');
        ItemValue:=TextBetWeenFirst(ItemList,BASE_URL_IMAGE_PRE_TRUE,'.');                 //Get poster code. Strings which opens/closes the data. WEB_SPECIFIC
        if (Length(ItemValue)>0) then ItemValue:=BASE_URL_IMAGE_PRE + ItemValue + '._V1_UY2048_.jpg';    //WEB_SPECIFIC
        // Avoid HTTPS redirection: Download https image to file
        // AddImageURL(itPoster,ItemValue);
        If (1=DownloadImage(ItemValue)) then
        //begin
            AddImageURL(itPoster,GetAppPath+'Scripts\'+BASE_DOWNLOAD_FILE_IMAGE)
            else AddImageURL(itPoster,'http://ia.media-imdb.com/images/G/01/imdb/images/logos/imdb_fb_logo-1730868325._CB499606982_.png');    //Get the photo from a file even if we log the true URL.
            LogMessage('      Get result poster:'+ItemValue+'||');
        //end;

        //if ItemValue <> '' then AddImageURL(itPoster,ItemValue)
        //else AddImageURL(itPoster,'http://ia.media-imdb.com/images/G/01/imdb/images/logos/imdb_fb_logo-1730868325._CB499606982_.png');
        //LogMessage('      Get result poster:'+ItemValue+'||');
    End;
Title: Re: Alternative
Post by: Ivek23 on June 10, 2018, 06:23:23 pm
Beta 2 Release Candidate version

IMDB_ [EN] [HTTPS] script


In the test program folder C:\Users\Public\Portables\PersonalVideoDB\Scripts\ I myself had to create downimage-BIN.jpg, which is missing in the Scripts folder. Please add it to the next version.
Title: Re: Alternative
Post by: VVV_Easy_Programing on June 10, 2018, 07:26:42 pm
Quote
C:\Users\Public\Portables\PersonalVideoDB\Scripts\ I myself had to create downimage-BIN.jpg, which is missing ...
downimage-BIN.jpg is the intermediate file were the new Function DownloadImage(URL) download the image to avoid HTTPS redirection.
In code is "GetAppPath+'Scripts\'+BASE_DOWNLOAD_FILE_IMAGE".
Perhaps the URL BASE_URL_IMAGE_PRE + ItemValue + '._V1_UY2048_.jpg' don't exists for all movies.
Title: Re: Alternative
Post by: Ivek23 on June 10, 2018, 08:07:08 pm
Quote
C:\Users\Public\Portables\PersonalVideoDB\Scripts\ I myself had to create downimage-BIN.jpg, which is missing ...
downimage-BIN.jpg is the intermediate file were the new Function DownloadImage(URL) download the image to avoid HTTPS redirection.
In code is "GetAppPath+'Scripts\'+BASE_DOWNLOAD_FILE_IMAGE".
Perhaps the URL BASE_URL_IMAGE_PRE + ItemValue + '._V1_UY2048_.jpg' don't exists for all movies.

For the time being, we will be able to see what will happen on several tests. If necessary, we will drop the resolution to ._V1_UY1800_.jpg .
Title: Re: Alternative
Post by: Ivek23 on June 10, 2018, 08:11:37 pm
In the Russian section of the forum they ask if they can help. I invited everyone who understands English to get help. I also added a link to this topic.
Title: Re: Alternative
Post by: VVV_Easy_Programing on June 10, 2018, 09:01:29 pm
Function DownloadImage(URL)  return 1 if it can get a file from the url and 0 if not exist this file.
With this funtionality the script can try severals resolutions from the no resized URL.
For instance: try  '._V1_UY2048_.jpg'
      if not exists try with '._V1_UY1800_.jpg'
      else with ' '._V1_UY1200_.jpg'
      else with original no resized URL.

In the end, the objetif is not download a big poster ... and 1200 points of heigth is a good size.
Title: Re: Alternative
Post by: VVV_Easy_Programing on June 11, 2018, 08:52:34 pm
I do as I have said in the last post (see line 501 in the attached script) with a user parameter MAX_IMAGE_HEIGTH = 1200;
Tell me if this script works OK with Alexander Jamieson movie in your Win 7 installation (that uses curl).
If it works OK I will do the same in the IMDB People script and we can thought to apply in the SearchList.

By the way, I have notice that IMDB reduces the download speed if you do a lot of ask or if the page is not popular: Tehn the script ask to the user Retry. If you have a lot of this problems we can increase the INTERNET_TEST_ITERATIONS   = 5; before to ask the user.
Title: Re: Alternative
Post by: Ivek23 on June 11, 2018, 09:24:52 pm
I do as I have said in the last post (see line 501 in the attached script) with a user parameter MAX_IMAGE_HEIGTH = 1200;
Tell me if this script works OK with Alexander Jamieson movie in your Win 7 installation (that uses curl).
If it works OK I will do the same in the IMDB People script and we can thought to apply in the SearchList.

It works perfectly, this can be done as mentioned.

By the way, I have notice that IMDB reduces the download speed if you do a lot of ask or if the page is not popular: Tehn the script ask to the user Retry. If you have a lot of this problems we can increase the INTERNET_TEST_ITERATIONS   = 5; before to ask the user.

It can be repaired more than it is now, and more on this problem, when these problems start to occur frequently.
Title: Re: Alternative
Post by: VVV_Easy_Programing on June 12, 2018, 08:04:24 pm
The Beta 3 Release Candidate version with (EN, ES, FR in TheMovieDB) and (ES, EN in FilmAffinity) (you can hide/activate in Script Configuration).

http://vvveasy.altervista.org/wp-content/uploads/2018/06/PersonalVideoDB_MOD-V.Beta_.3.RC_.zip (http://vvveasy.altervista.org/wp-content/uploads/2018/06/PersonalVideoDB_MOD-V.Beta_.3.RC_.zip)

Beta Testers: Run NOW with "debug.bat". So if you have problems, please is very important the name of the movie and attach the file: PersonalVideoDB\log.txt   

----------------------------------------------------------------------------------------------------------------
"Dirty" own PVD installation/collection adaptation for normal users:
Important: Make a secure copy and a test copy of your own actual PDV installation.
Unzip the beta versión and change the folders: Scripts and Plugings of your test copy.
Run PVD in portable mode (portable.bat) without internet proxi.
In Preferences/Movies/Custom Ítems add the fields:
Set (Short Text), TOP_250 (Number), IMDB_Votes (Number), TheMoviedb_Votes (Number), FilmAffinity_Votes (Number)
----------------------------------------------------------------------------------------------------------------
Corrected:
1) Now all the IMDB images are downloaded by PVdBDownPage.exe so no more problems with HTTPS (but is slower because the need of file).
2) The poster and photo heigth are script paremeter in 1200.
3) The images for SearchList are downloaded in heigth 200.
4) The INTERNET_TEST_ITERATIONS   is now a script user parameter.
5) I belive that IMDB slow the download if detects several ask. I recomended use TheMovieDB first time in order to get the IMDB URL of movies and in people.
Title: Re: Alternative
Post by: VVV_Easy_Programing on June 16, 2018, 10:17:06 am
Happily, we have finished the "Beta" phase in the PVD MOD and move on to "Release" state.
So, we closed this topic now and we continue in the new topic:

Personal Video Database 1.0.2.7 MOD
http://www.videodb.info/forum_en/index.php/topic,4134.0.html (http://www.videodb.info/forum_en/index.php/topic,4134.0.html)

See you all there.  ;D