Personal Video Database

English => Development => Scripts and Templates => Topic started by: mgpw4me on May 11, 2015, 03:06:28 am

Title: Imdb People
Post by: mgpw4me 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:


New attachment with updates.
Title: Re: Imdb People
Post by: Ivek23 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).
Title: Re: Imdb People
Post by: Ivek23 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. (http://www.imdb.com/name/nm0000078/mediaindex) To help you can current AllMovie.com_new script (http://www.videodb.info/download.php?ftype=1&file=AllMovie.com.zip), 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. (http://www.videodb.info/forum_en/index.php/topic,3862.0.html)
Title: Re: Imdb People
Post by: mgpw4me on May 11, 2015, 05:14:48 pm
Fair enough.  I've updated the script to pull in all the image pages.
Title: Re: Imdb People
Post by: Ivek23 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.
Title: Re: Imdb People
Post by: mgpw4me 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.
Title: Re: Imdb People
Post by: Ivek23 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 ...
Title: Re: Imdb People
Post by: mgpw4me 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.
Title: Re: Imdb People
Post by: Ivek23 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.
Title: Re: Imdb People
Post by: mgpw4me 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.
Title: Re: Imdb People
Post by: Ivek23 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.