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
Suggestions
Re: Suggestions
That forces me to parse another page just for that I'll see that later, but thanks for the infolukecs wrote:1) When searching imdb get the producer from this page http://us.imdb.com/Details?movie number
When do you mean by "searies" field ? What information would you put into ?lukecs wrote: 2) Add a series field for movie series like Die Hard or Star Wars
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.
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.
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 ?
Info for the producer maybe not so hard to change ?
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:
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
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;
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