Page 1 of 1
[En] Filmaffinity script help
Posted: 2008-06-13 19:24:55
by evanescence
Hello!
A few weeks ago I discovered this program and it's great, great job.
I'm a frequent FilmAffinity's user. The script works very well but would like to modify the script to import the data entering the url. I've seen that in other scripts, this is possible. For example, the imdb script choose between the title or the url. I tried to modify it, but I have not been able.
I hope someone help me.
Thank you.
Posted: 2008-06-13 19:51:54
by bad4u
Add this code ..
Code: Select all
if GetField(fieldURL) <> '' then
begin
AnalyzeMoviePage(GetField(fieldURL));
Exit;
end;
directly before this code at the end of the script (line 422; it's currently not the end, but the beginning of the script)..
Code: Select all
MovieName := GetField(fieldOriginalTitle);
if MovieName = '' then
MovieName := GetField(fieldTranslatedTitle);
Now you can enter/copy an URL into the URL field and run the script. It will not ask for any title no more. If you have no URL given, it will run the same way as the 'standard' script.
Posted: 2008-06-13 20:01:22
by antp
While Bad4u replied I was modifying the script, but to make it work like the Allociné script: allowing to paste the movie page URL instead of typing the title when the scripts asks for it.
What exactly was the request ? That, or as Bad4u suggested allowing to get the URL from the URL field?
Anyway, if you want "my" modification of the script, it is on my server, so available through the "update script" script.
Posted: 2008-06-13 20:23:29
by bad4u
As evanescence refered to IMDB script, which asks for title or URL, your solution might be the 'correct' or better one

Posted: 2008-06-13 21:05:19
by evanescence
Perfect!
Just what I needed because I have hyperlinks to excel, and now only with the url, I import data without entering movie to movie.
Thank you, you saved me a few hours of work.
Ps: In my humble opinion, I think the best thing is that if you have the URL, which read this field. If you do not have it and you do not find the movie, which prompted the url. (sorry for my English)