About plugins

Comments on existing version & Suggestions for future versions. If you want a new feature suggest it here. Discussions about beta versions also come in this section.
Post Reply
SiburNY
Posts: 17
Joined: 2002-11-13 00:12:12

About plugins

Post 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 ?
antp
Site Admin
Posts: 9630
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post 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.
SiburNY
Posts: 17
Joined: 2002-11-13 00:12:12

Post 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 ?
SiburNY
Posts: 17
Joined: 2002-11-13 00:12:12

Post 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.
antp
Site Admin
Posts: 9630
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post 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.
SiburNY
Posts: 17
Joined: 2002-11-13 00:12:12

Post 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. :grinking: ;)
antp
Site Admin
Posts: 9630
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

Ok, I see, yes it may be quite useful :)
SiburNY
Posts: 17
Joined: 2002-11-13 00:12:12

Post by SiburNY »

Cool :grinking:
Looking forward to seeing AMC IV :up:
Post Reply