English > Scripts and Templates

AllMovie.com (movies)

<< < (7/10) > >>

nostra:
It is possible to fill any field with a script.

The "last modified" field will be available in 0.9.9.5

rick.ca:

--- Quote ---It is possible to fill any field with a script.
--- End quote ---

I need to be more careful with that word, "possible." Consider it my contribution to your "Things to think about doing when I have nothing better to think about doing" TODO list. ;)


--- Quote ---The "last modified" field will be available in 0.9.9.5
--- End quote ---

Great! I assume that will be a field the program will update whenever a plugin or script adds any information to the record.

Should I still want to get the current date in a script, however, is a date function available?

nostra:

--- Quote ---Great! I assume that will be a field the program will update whenever a plugin or script adds any information to the record.
--- End quote ---

This field will be updated each time a plugin or user updates one of the fields.


--- Quote ---Should I still want to get the current date in a script, however, is a date function available?
--- End quote ---

Sure. (I need to find some time and post detailed instructions for scripting, templates and skins)
Here are the Date/time functions:


--- Code: ---function CurrentDateTime : Extended;

function DateToStr(Value : Extended) : WideString;

function TimeToStr(Value : Extended) : WideString;

function EncDate(Year, Month, Day : Word): Extended;

function EncTime(Hour, Min, Sec : Word): Extended;

procedure DecdTime(const Time: Extended; var Hour, Min, Sec: Word);

procedure DecdDate(const Date: Extended; var Year, Month, Day: Word);

function StrToDateW(const S: WideString): Extended;

function StrToTimeW(const S: WideString): Extended;
--- End code ---

rick.ca:

--- Quote ---Sure. (I need to find some time and post detailed instructions for scripting, templates and skins)
Here are the Date/time functions:
--- End quote ---

Thanks! I've "fixed" my script. My date Updated field will be somewhat redundant with Last modified, but it might be useful to have a separate date for when the AllMovie+ script was last run.

Detailed instructions would be nice, but when you spoon-feed me like this, my head is less likely to explode. :D

darichman:
Okay I have a few days off now, so I'm revisiting my movie metadata (yay!)

First of all, thanks for updating the allmovie script, nostra. I'll see how I go...

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version