importing info from internet

If you need help on how to use the program
Post Reply
z3us
Posts: 86
Joined: 2008-02-19 17:36:53

importing info from internet

Post by z3us »

Hi.
I want lenght field to never be imported when I use a script.Is it possible?
TY
bad4u
Posts: 1148
Joined: 2006-12-11 22:54:46

Post by bad4u »

Sure. On most scripts you just need to outcomment or delete one line (or sometimes two lines if there should be an 'if.. then' condition) that contains the setfield(fieldLength) function.
Which script are you talking about ?
z3us
Posts: 86
Joined: 2008-02-19 17:36:53

Post by z3us »

anyone.
I use AMCupdater to add new films, and this program fills the field with the exact lenght of my movie file, so I dont want scripts to change it.
Sorry for my bad english
bad4u
Posts: 1148
Joined: 2006-12-11 22:54:46

Post by bad4u »

Sorry, my mistake, I misunderstood your intention.

Well, I only know that on the scripting window you can set 'Modifiable fields' (at the bottom on the right side). If you change Length settings, it will not be imported anymore - but you need to do this once for every script you use (it will be saved then) and - as far as I know - the script has to support the "if CanSetField" condition (I'm not sure about that, but not all scripts use this in their code).
antp
Site Admin
Posts: 9651
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

bad4u wrote:and - as far as I know - the script has to support the "if CanSetField" condition (I'm not sure about that, but not all scripts use this in their code).
Unchecking options in the "modifiable fields" list works on all scripts ;) (but indeed you have to change these for each script used - and they are saved when starting the script).

Technical info about that :
When items from that list are unchecked, the "SetField" function has no effect on these.
Actually the "CanSetField" function is there to let the script know if getting info for a field is useful or not: e.g. if getting summary requires downloading a separage, it is not useful to download that page if the use unchecked the field. Same for picture: no need to download it if it is unchecked.
z3us
Posts: 86
Joined: 2008-02-19 17:36:53

Post by z3us »

OK. It works perfectly, TY
Another question: is it possible to show only the scripts I want??? As having "favourite scripts"
bad4u
Posts: 1148
Joined: 2006-12-11 22:54:46

Post by bad4u »

z3us wrote:Another question: is it possible to show only the scripts I want??? As having "favourite scripts"
Sure. Delete unwanted scripts from scripts folder. ;)

Or just move them to another folder.

There is another trick you can make scripts invisible on the list - but only on the list that appears when hitting button "Get information -> From internet using a script" (or F6). For that you need to choose a script, open editor mode, hit properties button and change the "Get info from web" value to false. Now the script will show up on the list only when you open "Tools -> Scripting" from the menu (or Shift-F6), not when you click the "Get information" button. Not sure if there's another solution..

Edit: There might be another, even better trick.. choose one of your favorite scripts. Enter editor mode. Hit properties button. You will see a field named 'Site language'. Set this field to "FAV" (or similar) instead of EN (for english) or whatever. Now you can filter the scripts listing via button 'Language filter' for your favourite scripts, but don't forget that these scripts will not show up on the original language any more. This will work on both lists (button and menu).
z3us
Posts: 86
Joined: 2008-02-19 17:36:53

Post by z3us »

Last trick is great.
TY
z3us
Posts: 86
Joined: 2008-02-19 17:36:53

Post by z3us »

One more question:
I want to take fields from different scripts: cover from a web, sinopsis from another, actors from another, ...
Is it possible to automatize it?? Or I have to do it manually: run one script, then the other,...???

TY
antp
Site Admin
Posts: 9651
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

You have to manually run the scripts; or write a script combining what you want, but that is not easy if you do not know at all how script work (though that it is not especially hard to learn)
Post Reply