Page 1 of 1

Suggestions

Posted: 2002-07-29 23:58:27
by lukecs
1) When searching imdb get the producer from this page http://us.imdb.com/Details?movie number
2) Add a series field for movie series like Die Hard or Star Wars

Re: Suggestions

Posted: 2002-07-30 09:26:30
by antp
lukecs wrote:1) When searching imdb get the producer from this page http://us.imdb.com/Details?movie number
That forces me to parse another page just for that :/ I'll see that later, but thanks for the info
lukecs wrote: 2) Add a series field for movie series like Die Hard or Star Wars
When do you mean by "searies" field ? What information would you put into ?

Posted: 2002-07-30 10:37:14
by lukecs
Say I have all 5 Star Wars movies. In each one the series field would read "Star Wars" That way when you group by series all 5 will be listed under "Star Wars". Same thing goes for James Bond Movies or a Trilogy like Evil Dead which has The Evil Dead, Evil Dead II and Army of Darkness. When the movies in the trilogy don't have anything in common it can be hard to find all the movies in one.

I currently used the Borrower field for it, cause I don't lend out my cds ;)
hmmm, On second thought it should actually be labeled Trilogy.

Posted: 2002-07-30 11:00:11
by lukecs
Another thing you could quickly add is if the URL is to imdb you could automatically start decoding the movie screen instead of confirming the movie selection if imdb has options.

Posted: 2002-07-30 11:45:22
by antp
Ok, I see what you mean by "series" now. I plan to add something like that, but I do not know yet when and how I'll do that.

For the IMDB thing, you mean import information if you already know the IMDB address of the movie page ?

Posted: 2002-08-05 23:12:39
by sengir
For information, on imdb, for the producer information, when you make a search on the site you're redirect automaticaly on the detail page and when you type an url with a title?xxxxx you are redirected to the details?xxxxx where the xxxxx are the same ...

Info for the producer maybe not so hard to change ?

Posted: 2002-08-05 23:34:41
by antp
not very hard, but it will required to download another page just for the producer, which will be quite slower...
(it is already slower for the multiple descriptions...)

Posted: 2002-08-09 02:56:19
by Bad Joker
for the producer:

i did a script who imports all excutive producers, i'll post that later, still working on the alternative title :(

this is the part of the producer:

Code: Select all

//Producer
  LineNr := FindLine('<BASE HREF="', Page, 0);
  if LineNr > -1 then
  begin
    Line := Page.GetString(LineNr);
    URLStart := pos('/Title?', Line) + 7;
    URLEnd := pos('">', Line);
    URL := copy(Line, URLStart, URLEnd - URLStart);
    Page.Text := GetPage('http://us.imdb.com/Details?' + URL);
    LineNr := FindLine('Produced by', Page, 0);
    if LineNr > -1 then
    begin
      ProValue := '';
      repeat
      LineNr := LineNr + 1;
      Line := Page.GetString(LineNr);
      BeginPos := pos('">', Line) + 2;
      EndPos := pos('</A>', Line);
        if Pos('executive producer', Line) > 0 then
        begin
        Value := copy(Line, BeginPos, EndPos - BeginPos);
        if (Value <> '(more)') and (Value <> '') then
          begin
          if ProValue <> '' then
            ProValue := ProValue + ', ';
            ProValue := ProValue + Value;
          end;
        end;
      until (pos('</TABLE>', Line) > 0 );
    HTMLDecode(ProValue);
    HTMLRemoveTags(ProValue);
    SetField(fieldProducer, ProValue);
  end;
  end;
you also have to add 4 variables:
ProValue, URLStart, URLEnd and URL
if you want all producers, just replace that in the script ( if Pos('executive producer', Line) > 0 then ) with your wishes