Page 1 of 1
About plugins
Posted: 2003-10-06 05:57:09
by SiburNY
Thanks for your great piece of software
I saw somewhere here that you mentioned Import pluging. Could you please tell us more specific info in this subject.
I asked it because I want to get rid of pascal-based import scripts. It easy, but takes a lot of time to write/update them. I want to implement regular expressions scritp. I saw it in the program called WatzNew
http://www.watznew.com/. You can specify patterns for every field and it'll extract info part that you need
. If you add plugins to AMC, I'll write one to do so. If no, than I'll do a mod of AMC.
Anyway, is there any way to make a link between AMC 3.4.x and external program for importing movie data ?
Posted: 2003-10-06 08:02:14
by antp
I probably said that I will "maybe" make plugins for information importation in version 4, but it is not sure that I'll do it.
I can easily add reg.expr. in Pascal scripting, I just have to add them in the compiled program, and add a link to the script engine. But I cannot add that in version 3 without recompiling it, and I do not want to recompile it.
AMC 3 does not support anything else than the current scripting engine, and it will probably never other things.
Posted: 2003-10-06 18:41:46
by SiburNY
Cool. Anyway, If you don't have enough time to do plugins, I'll try to do it myself. AMC 4 will be Open Source, right ? What enviroment do you use ? Delphi ?
Posted: 2003-10-06 18:45:32
by SiburNY
antp wrote:I can easily add reg.expr. in Pascal scripting, I just have to add them in the compiled program, and add a link to the script engine.
I just relized that it'll be very good, because we can make one script to parse HTML code and just change patterns for data fields.
COOL !! Looking forward to seeing that
! Thanks.
Posted: 2003-10-06 19:47:42
by antp
Yes, it will be under GPL licence. It is made with Delphi 7 with few free components added (like Ant Renamer actually).
I do not really see how regexpr will be so usefull. I tought it was only used to check if a text string matches criterias.
Posted: 2003-10-07 04:46:50
by SiburNY
antp wrote:Yes, it will be under GPL licence. It is made with Delphi 7 with few free components added (like Ant Renamer actually).
I do not really see how regexpr will be so usefull. I tought it was only used to check if a text string matches criterias.
It's used to match(search)/replace
!
Small example how it'll work.
- {*} matches any sequence of symbols
- {%} needed parameter
part of HTMl code:
Code: Select all
blah-blah-blah<a href='http://www.movieurlishere.com/movienumber'>Movie Name here</a>blah-balh-blah
So, if you need name to extract URL, you use following expression:
Code: Select all
{*}<a href='{%}'>{*}
where {%} matches "http://www.movieurlishere.com/movienumber"
For movie name:
Code: Select all
{*}<a href={*}>{%}</a>{*}
where {%} matches "Movie Name here"
As for me, I see it as more easier way to get info. Maybe it's because of my experience with HTML.
Posted: 2003-10-07 08:07:48
by antp
Ok, I see, yes it may be quite useful
Posted: 2003-10-07 21:00:53
by SiburNY
Cool
Looking forward to seeing AMC IV