IMDB script
-
- Posts: 62
- Joined: 2009-11-12 05:53:14
tag line
Hi all.
I am trying to import tag line using latest IMDB script (v.3.50) but it doesnt seem to bring anything...
I have set it to be brought in Description field ,before Summary.
Does it work for you?
Thank you 4 your time reading this.
Regards,
the_observer.
I am trying to import tag line using latest IMDB script (v.3.50) but it doesnt seem to bring anything...
I have set it to be brought in Description field ,before Summary.
Does it work for you?
Thank you 4 your time reading this.
Regards,
the_observer.
Re: tag line
The script has been updated for tagline import and new version will be available soon from http://update.antp.be/amc/scripts/ or through script [Update Scripts].the_observer wrote:I am trying to import tag line using latest IMDB script (v.3.50) but it doesnt seem to bring anything..
-
- Posts: 62
- Joined: 2009-11-12 05:53:14
Thx 4 the update guys.
Tag line works like a charm now.
Though it doesn't bring the MPAA rating now.At least it doesn't work for me ,i have set it to be brought after the comment.
Is it working or it is not only 4 me ?
Thank you 4 your time reading this.
Regards,
The_Observer.
P.S. Also between the tag line and the description it leaves 2 empty lines instead of one.I don't know if it is meant to be so.Nevertheless it is a minor issue,just letting you know.
Tag line works like a charm now.
Though it doesn't bring the MPAA rating now.At least it doesn't work for me ,i have set it to be brought after the comment.
Is it working or it is not only 4 me ?
Thank you 4 your time reading this.
Regards,
The_Observer.
P.S. Also between the tag line and the description it leaves 2 empty lines instead of one.I don't know if it is meant to be so.Nevertheless it is a minor issue,just letting you know.
MPAA rating has been fixed and update will be available soon.
I don't use IMDB script, so I cannot say if this is the way it worked previously. And as I don't keep HTML code of previous website layouts, I cannot check what exactly they changed. Someone who has older IMDB database entries with that option enabled might check this on his/her catalog.the_observer wrote:P.S. Also between the tag line and the description it leaves 2 empty lines instead of one.I don't know if it is meant to be so.Nevertheless it is a minor issue,just letting you know.
-
- Posts: 62
- Joined: 2009-11-12 05:53:14
Everything is working ok now.Thank you.
The only minor issue is that there are many lines between Tag and description,is shown like this:
I will try to fix it but i dont thik i will manage cause i dont understand many of the script.
The only minor issue is that there are many lines between Tag and description,is shown like this:
Code: Select all
"the hot-line suspense comedy
"
An insane general starts a process to nuclear holocaust that a war room of politicians and generals frantically try to stop.
-
- Posts: 62
- Joined: 2009-11-12 05:53:14
Ok ,i found how to fix it.
Find:
Replace with
And now it works -at least for option to put it before Comments- and becomes like this :
I guess the 2nd string #13#10 add one more empty line that is of no use.
I also noticed that in the if where the above modification has to be done there are also othe instances of double #13#10 string which i dont dare to check cause i am not experienced coder.
So it works for me now ,just letting you know in case you would like to add this change to a newer ver of IMDB script or maybe if you investigate the subject more thoroughly
Thank you 4 reading this and for your help.
Regards,
The_Observer
Find:
Code: Select all
522 Value := Value + #13#10 + #13#10 + GetField(fieldDescription);
Code: Select all
522 Value := Value + #13#10 + GetField(fieldDescription);
Code: Select all
"the hot-line suspense comedy
"
An insane general starts a process to nuclear holocaust that a war room of politicians and generals frantically try to stop.
I also noticed that in the if where the above modification has to be done there are also othe instances of double #13#10 string which i dont dare to check cause i am not experienced coder.
So it works for me now ,just letting you know in case you would like to add this change to a newer ver of IMDB script or maybe if you investigate the subject more thoroughly
Thank you 4 reading this and for your help.
Regards,
The_Observer
I found an older catalog on my hdd that I used for testing, that had few IMDB entries with tagline import. There was exactly one empty line between tagline and description, so I changed that for the new script version again.antp wrote:As far as I remember when I originally wrote the script there was at most one line between tagline and description, but I do not know how it evolved later.
Thanks, always nice to see if someone tries to fix problems on his own. Learning by doing.the_observer wrote:Ok ,i found how to fix it.
...
I guess the 2nd string #13#10 add one more empty line that is of no use.
I also noticed that in the if where the above modification has to be done there are also othe instances of double #13#10 string which i dont dare to check cause i am not experienced coder.
But the problem was not the double linebreak on the tagline import, the empty line was added on description import instead (not behind tagline, but before description). You can see that on description field if you turn off tagline import.
Note: #13#10 is a linebreak, not an empty line (it simply "jumps" to the next line). So in case there is not other string on the line, it provokes an empty line.
Last edited by bad4u on 2009-11-15 16:14:10, edited 1 time in total.
A new version (3.53) will be available from http://update.antp.be/amc/scripts/ or using script "Update Scripts" soon.
It fixes problems on length and aspect ratio import, google search function, hiding aka titles from results list and some minor changes on director, description, tagline, etc import using FullTrim function now. I hope most bugs are fixed and I did not introduce new ones.
In addition the new script will require an update of unit StringUtils1.pas to latest version 7, which can be done automatically (after inquiry) or downloaded manually from AMC update server.
Let me know if it does not work with specific movies or there are still bugs/problems.
It fixes problems on length and aspect ratio import, google search function, hiding aka titles from results list and some minor changes on director, description, tagline, etc import using FullTrim function now. I hope most bugs are fixed and I did not introduce new ones.
In addition the new script will require an update of unit StringUtils1.pas to latest version 7, which can be done automatically (after inquiry) or downloaded manually from AMC update server.
Let me know if it does not work with specific movies or there are still bugs/problems.
-
- Posts: 62
- Joined: 2009-11-12 05:53:14
Thanx mate 4 your efforts.
The "try-to-solve-it-on-your-own-even-if-you-dont-know-much-dont-be-lazy" thing came after writing many answers to questions in other forums
Well i didnt find the correct correction for the error but i am glad you got involved and fixed it.(Havent seen the new script yet but so i guess).
Also , you mentioned before that you dont use IMDB script .If i am not getting rude (dont know the exact word) which script you prefer to use?
If it is better maybe i could check it out and use it too
Thank you 4 reading this and excuse my lame english.
Regards,
The_Observer.
P.S. Maybe you overestimate me.I have no idea how to turn of the tag line.Also thx for your notices regarding the problem.As you said,you learn a lot by doing/trying in deed.
The "try-to-solve-it-on-your-own-even-if-you-dont-know-much-dont-be-lazy" thing came after writing many answers to questions in other forums
Well i didnt find the correct correction for the error but i am glad you got involved and fixed it.(Havent seen the new script yet but so i guess).
Also , you mentioned before that you dont use IMDB script .If i am not getting rude (dont know the exact word) which script you prefer to use?
If it is better maybe i could check it out and use it too
Thank you 4 reading this and excuse my lame english.
Regards,
The_Observer.
P.S. Maybe you overestimate me.I have no idea how to turn of the tag line.Also thx for your notices regarding the problem.As you said,you learn a lot by doing/trying in deed.
IMDB probably is the most popular english script. Personally I only use german ones.the_observer wrote:Also , you mentioned before that you dont use IMDB script .If i am not getting rude (dont know the exact word) which script you prefer to use?
If it is better maybe i could check it out and use it too
For many scripts you will find "script options" in a frame on the right side of the scripting window, when you choose the script from the list (=mark it blue). For not importing tagline on IMDB script you would change option "GetTagline" to 0 then.P.S. Maybe you overestimate me.I have no idea how to turn of the tag line.
-
- Posts: 62
- Joined: 2009-11-12 05:53:14
-
- Posts: 62
- Joined: 2009-11-12 05:53:14
There are new problems on Director, Producer, Length and Video format import. Either they switched back to the previous HTML code base (e.g. the <p> tags are missing again, tables look little different) or they are still testing new layout options and switched between. I'll keep an eye on it, but maybe it's better to wait another day or two, to see if they keep this version now.. if they are testing new layout options it wouldn't make sense trying to keep track.
-
- Posts: 62
- Joined: 2009-11-12 05:53:14
Yes of course .You r right
Since it seems that they r making changes we (you actually+me obligatorily) should wait.
The funny thing is that today i though i was insane ,since i remembered clearly that i had checked thoroughly that the last script was good.
All night i entered about 200 movies with no prob and the morning i decided to repair massively about 150 which i had enter with previous versions of script (corrections to length e.t.c.) only to discover that it was not working.
Well i can tell you for sure that it was a really weird felling specially for a guy who dont know much and couldnt imagine the explanation you gave to see that suddenly something is not working after hours of everything is ok.
Another funny thing is that all these days i am trying to import my movie collection and almost every day i start over,check scripts modify the new script versions you produce to my likings (e.g. put my rating field to another filed e.t.c.).
Two things are rather surprising for me though.
1.How great Murphy's Law worked for me now i decided to migrate my movie db
2.You get occupied with a script which you dont even use.Human nature amazes me from time to time
Thank you 4 your help.
Regards,
The_Observer.
P.S. It should be really interesting to be able to understand and alter the code.While waiting i thing i will give it a try to fix the code.
(Crowd's voice --> This is probably the best joke you said this week the_observer )
Since it seems that they r making changes we (you actually+me obligatorily) should wait.
The funny thing is that today i though i was insane ,since i remembered clearly that i had checked thoroughly that the last script was good.
All night i entered about 200 movies with no prob and the morning i decided to repair massively about 150 which i had enter with previous versions of script (corrections to length e.t.c.) only to discover that it was not working.
Well i can tell you for sure that it was a really weird felling specially for a guy who dont know much and couldnt imagine the explanation you gave to see that suddenly something is not working after hours of everything is ok.
Another funny thing is that all these days i am trying to import my movie collection and almost every day i start over,check scripts modify the new script versions you produce to my likings (e.g. put my rating field to another filed e.t.c.).
Two things are rather surprising for me though.
1.How great Murphy's Law worked for me now i decided to migrate my movie db
2.You get occupied with a script which you dont even use.Human nature amazes me from time to time
Thank you 4 your help.
Regards,
The_Observer.
P.S. It should be really interesting to be able to understand and alter the code.While waiting i thing i will give it a try to fix the code.
(Crowd's voice --> This is probably the best joke you said this week the_observer )
For movies that have been saved with correct URL, you can simply run IMDB in batch mode later and it will update all missing/wrong fields without user interaction for these movies. No need to do that manually thenthe_observer wrote:All night i entered about 200 movies with no prob and the morning i decided to repair massively about 150 which i had enter with previous versions of script (corrections to length e.t.c.) only to discover that it was not working.
How do I do that?bad4u wrote:For movies that have been saved with correct URL, you can simply run IMDB in batch mode later and it will update all missing/wrong fields without user interaction for these movies. No need to do that manually then
The script still miss "Length". I noticed that "Director" and "Writers" looks abit wrong to now. I looks like this: ":Mel Gibson" and "s:Benedict Fitzgerald (screenplay), Mel Gibson (screenplay)" or "s (WGA):Benedict Fitzgerald (screenplay), Mel Gibson (screenplay).
Last edited by haggis82 on 2009-11-21 14:31:18, edited 1 time in total.
-
- Posts: 62
- Joined: 2009-11-12 05:53:14
Hi haggis.
Seems that IMDB changed their pages layout a bit last couple days and bad4u wants to be sure that this will be their final layout before he makes the corrections to the script.
To your question now.
If you want to import massively the data for your database ,when you will start the script (press F6 and chose IMDB script) you will see at the right part of the new window which will open a bunch of options.
At script options pane ,choose Batch Options and set the value to 2.
This will cause the script to import the data from IMDB in case that you have already fulfill the URL field
From the pane below called Script limitations-Movies to include ,choose for which movies of your database you want the update to be done.
From the pane Script limitations-Modifiable fields ,choose which fields to import
All of the options are self explanatory.
We just have to be patient a bit and bad4u will correct the script (which then you will have to update using the UPDATE scipt)
Regards,
the_observer.
If you read above we are just waiting a couple days for bad4u to fix the script that will bring length and other fields correctly from IMDB.The script still miss "Length". I noticed that "Director" and "Writers" looks abit wrong to now. I looks like this: ":Mel Gibson" and "s:Benedict Fitzgerald (screenplay), Mel Gibson (screenplay)".
Seems that IMDB changed their pages layout a bit last couple days and bad4u wants to be sure that this will be their final layout before he makes the corrections to the script.
To your question now.
If you want to import massively the data for your database ,when you will start the script (press F6 and chose IMDB script) you will see at the right part of the new window which will open a bunch of options.
At script options pane ,choose Batch Options and set the value to 2.
This will cause the script to import the data from IMDB in case that you have already fulfill the URL field
From the pane below called Script limitations-Movies to include ,choose for which movies of your database you want the update to be done.
From the pane Script limitations-Modifiable fields ,choose which fields to import
All of the options are self explanatory.
We just have to be patient a bit and bad4u will correct the script (which then you will have to update using the UPDATE scipt)
Regards,
the_observer.