XBMC Community Forum  

Go Back   XBMC Community Forum > Development > Scraper Development

Scraper Development Developers forum for meta data scrapers. Scraper developers only!
Not for posting feature requests, bugs, or end-user support requests!

Reply
 
Thread Tools Search this Thread Display Modes
Old 2009-01-29, 23:13   #1
acaranta
Junior Member
 
acaranta's Avatar
 
Join Date: Jan 2009
Location: Mougins, France
Posts: 27
acaranta is on a distinguished road
Default RegExp conditional option help

Hi

I'd like to know if is is possible to test 2 booleans in a conditional statement ..

for example :

Code:
<RegExp conditional="testA & !testB">
</Regexp>
That would be nice

I can't find help on this anywhere ... or ... i didn't search thoroughly
acaranta is offline   Reply With Quote
Old 2009-01-30, 12:35   #2
spiff
Grumpy Bastard Developer
 
spiff's Avatar
 
Join Date: Nov 2003
Posts: 7,715
spiff is on a distinguished road
Default

well, no. i didn't add boolean expression parsing as this is easily done elsewise.

<regexp conditional="testA" blabla dest="5">
<expression>somestuff</expression>
</regexp>
<regexp conditional="!testB" input="$$5" output="\1" dest="4">
<expression>(.+)</expression>
</regexp>

see, if either arent fulfilled no joy in buffer 4
__________________
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
spiff is online now   Reply With Quote
Old 2009-01-30, 18:07   #3
acaranta
Junior Member
 
acaranta's Avatar
 
Join Date: Jan 2009
Location: Mougins, France
Posts: 27
acaranta is on a distinguished road
Default

hehe actually, while asking I tried something which looks like what you showed :
Code:
<RegExp conditional="!testA">
	<RegExp conditional="testB" input="$$1" output="(...)" dest="4">
		<expression repeat="yes">(...)</expression>
	</RegExp>
			
	<RegExp conditional="!testB" input="$$1" output="(...)" dest="4">
		<expression repeat="yes">(...)</expression>
	</RegExp>
</RegExp>

<RegExp conditional="testA" input="$$1" output="(...)" dest="4">
	<expression repeat="yes">(...)</expression>
</RegExp>
And this seems to fit nicely my need ...

Anyway, thanks !
acaranta is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 18:38.


Protected by Akismet, We recommend WordPress blogs
Copyright © 2008, XBMC Project