Author Topic: Imdb People  (Read 15444 times)

0 Members and 1 Guest are viewing this topic.

mgpw4me

  • Guest
Imdb People
« on: May 11, 2015, 03:06:28 am »
A while back I posted a script to download people images from IMDB.  It's gone unmaintained until now.  Maybe this is a duplication of something Ivek has done, but I couldn't get anything else to work, so....

LIMITATIONS:

  • You can only download 1 image
  • Silent mode (not recommended) MUST be set "True" in the script itself.  In truth, I haven't even tested that it works.
  • Image size is set to 600 X 600 in the script
  • Script needs to be installed in the PVD->SCRIPTS directory

New attachment with updates.
« Last Edit: May 11, 2015, 05:44:52 pm by mgpw4me »

Offline Ivek23

  • Global Moderator
  • *****
  • Posts: 2711
    • View Profile
Re: Imdb People
« Reply #1 on: May 11, 2015, 06:05:58 am »
Thank you for the excellent working.

Thank you for your script
Maybe this is a duplication of something Ivek has done, but I couldn't get anything else to work, so....
which is not a duplicate of my script, which transfers only the photo (next to the title of people) on people IMDB Main page site. My script is just a temporary solution until Nostra has been repaired Imdb_people plugin, which now does not currently transfer photos from people on IMDB web pages (people IMDB Main page).
Ivek23
Win 10 64bit (32bit)   PVD v0.9.9.21, PVD v1.0.2.7, PVD v1.0.2.7 + MOD


Offline Ivek23

  • Global Moderator
  • *****
  • Posts: 2711
    • View Profile
Re: Imdb People
« Reply #2 on: May 11, 2015, 08:50:24 am »
Perhaps we can find a solution to transfer people photo images from multiple sites, if, of course, remain, as is the case with John Wayne. To help you can current AllMovie.com_new script, which now does not work anymore, where I used solution for search results on multiple pages.

If I am in this code
Code: [Select]
function GetDownloadURL : AnsiString;

begin

 Msg('-------- GetDownloadUrl Starting',mlGood);
 if ( PersonUrl = '' ) then begin;
    LinkCount := ExplodeString(GetFieldValue(pfURL),Links,' ');

    for LinkIndex := 0 to LinkCount-1 do begin;
        if ((Pos('imdb.com',Links[LinkIndex]) > 0) and (PersonUrl = '')) then begin;
           PersonUrl := Links[LinkIndex] + '/mediaindex?page=1';
           PersonUrl := TFFReplace( PersonUrl,'//mediaindex?page=1','/mediaindex?page=1');
           Msg('PersonUrl has been set to ' + PersonUrl,mlGood);
           continue;
        end;
    end;
    Mode := smNormal;
    Msg('Mode now set to smNormal',mlGood);
 end;

 if (Mode = smSearch) then
    Result := SEARCH_STR
 else
 if (Mode = smPage) then
    Result := PageUrl
 else
    Result := PersonUrl;

 Msg('-------- GetDownloadUrl completed Result: ' + Result,mlGood);

end;
this part of the code
Code: [Select]
PersonUrl := Links[LinkIndex] + '/mediaindex';add this piece of code
Code: [Select]
PersonUrl := Links[LinkIndex] + '/mediaindex?page=1';or change the page number, the script is still working properly.

If this succeeded, this would be a great script. the same one which was made a few years ago and is stored in the Archive of scripts.
Ivek23
Win 10 64bit (32bit)   PVD v0.9.9.21, PVD v1.0.2.7, PVD v1.0.2.7 + MOD


mgpw4me

  • Guest
Re: Imdb People
« Reply #3 on: May 11, 2015, 05:14:48 pm »
Fair enough.  I've updated the script to pull in all the image pages.

Offline Ivek23

  • Global Moderator
  • *****
  • Posts: 2711
    • View Profile
Re: Imdb People
« Reply #4 on: May 18, 2015, 07:34:46 am »
Fair enough.  I've updated the script to pull in all the image pages.

I apologize if I tend to script does not transfer all the images (this has happened as soon as I installed the script), but now works perfectly and correctly.

I have a request, if it is possible to make a similar script for movies images (posters).

Thank you for your excellent work, again.
Ivek23
Win 10 64bit (32bit)   PVD v0.9.9.21, PVD v1.0.2.7, PVD v1.0.2.7 + MOD


mgpw4me

  • Guest
Re: Imdb People
« Reply #5 on: May 20, 2015, 07:49:25 pm »
If I remember correctly, images for posters aren't limited to a single image the way people are, so it's a promising idea.  I'll take a look at it sometime soon.

Offline Ivek23

  • Global Moderator
  • *****
  • Posts: 2711
    • View Profile
Re: Imdb People
« Reply #6 on: May 20, 2015, 08:23:36 pm »
If I remember correctly, images for posters aren't limited to a single image the way people are, so it's a promising idea.  I'll take a look at it sometime soon.

Thanks, we will wait ...
Ivek23
Win 10 64bit (32bit)   PVD v0.9.9.21, PVD v1.0.2.7, PVD v1.0.2.7 + MOD


mgpw4me

  • Guest
Re: Imdb People
« Reply #7 on: May 23, 2015, 02:26:46 am »
I've looked the poster script idea, but it isn't working for me.

I wanted to use Google with a title, year and director.  That would be enough to ensure valid results, get the advanced search features (like character set conversions).  Plus, it would be very easy to parse a Google page and get the links to the full-sized images (along with their sizes on preview).

Unfortunately Google uses HTTPS, and PVD automatically adds HTTP to the beginning of any search that doesn't have it at the beginning.

Personally, I'm just going to continue to manually find the posters I want.

Offline Ivek23

  • Global Moderator
  • *****
  • Posts: 2711
    • View Profile
Re: Imdb People
« Reply #8 on: May 23, 2015, 07:07:14 am »
Unfortunately Google uses HTTPS, and PVD automatically adds HTTP to the beginning of any search that doesn't have it at the beginning.

Yes, it is true, if the web pages transferred from "http"  to "https", PVD will become useless if Nostra, of course, does not solve and fix this problem.

What do you say about a similar script for the movie photo gallery, maybe it would be easier to do than posters. In the movie photo gallery are all pictures from movies, there are even pictures of movie posters.
Ivek23
Win 10 64bit (32bit)   PVD v0.9.9.21, PVD v1.0.2.7, PVD v1.0.2.7 + MOD


mgpw4me

  • Guest
Re: Imdb People
« Reply #9 on: May 23, 2015, 03:09:52 pm »
I plan to write a front-end for the database using Javascript.  That will give me a nice display system, and if PVD continues to go unsupported, I'll add code to the front-end to do database updates.

I prefer to work on the display system for now, rather than divide my time.

Offline Ivek23

  • Global Moderator
  • *****
  • Posts: 2711
    • View Profile
Re: Imdb People
« Reply #10 on: October 18, 2016, 12:10:21 pm »
I fixed it I made a mistake, which arose from a change in the URL address of images for People (IMDB pages have begun to use Amazon safely https link for pictures).

ImdbImage script
version 0.1.0.5


for People Photo

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


 

anything