Recent Posts

Pages: 1 2 3 [4] 5 6 7 8 9 10
31
Talk / Re: Alternative
« Last 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.
32
Talk / Re: Alternative
« Last 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.
33
Talk / Re: Alternative
« Last 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.
34
Talk / Re: Alternative
« Last 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 .
35
Talk / Re: Alternative
« Last 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.
36
Talk / Re: Alternative
« Last 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.
37
Talk / Re: Alternative
« Last 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;
38
Talk / Re: Alternative
« Last 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.
39
Talk / Re: Alternative
« Last 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.
40
Talk / Re: Alternative
« Last 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

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?
Pages: 1 2 3 [4] 5 6 7 8 9 10
anything