2012-01-09, 09:59
Hi all.
Pushed a new version of my Filmdelta scraper (1.0.7) last week and now I suddenly discovered that it in fact isn't working correctly and I don't really know what I did wrong.
I added a new conditional to let the user choose wheter to use swedish titles as found at filmdelta or the original movie title. What I discovered now is that it seems to fetch the original title no matter what I tell it to do in the settings. The relevant piece of the scraper looks like this:
I thought this would mean that it would enter the first regexp if "swedishtitles" is true and the second if it's false, but I guess I'm misunderstanding something
/Daniel
Pushed a new version of my Filmdelta scraper (1.0.7) last week and now I suddenly discovered that it in fact isn't working correctly and I don't really know what I did wrong.
I added a new conditional to let the user choose wheter to use swedish titles as found at filmdelta or the original movie title. What I discovered now is that it seems to fetch the original title no matter what I tell it to do in the settings. The relevant piece of the scraper looks like this:
Code:
<RegExp conditional="swedishtitles" input="$$1" output="<title>\1</title>" dest="5">
<expression noclean="1"><title> (.*?) - Filmdelta -</expression>
</RegExp>
<RegExp conditional="!swedishtitles" input="$$1" output="<title>\1</title>" dest="5">
<expression><h4>Originaltitel</h4>[^<]*<h5>([^<]*)</h5>.*?/filmarkiv/([0-9]*)/</expression>
</RegExp>
I thought this would mean that it would enter the first regexp if "swedishtitles" is true and the second if it's false, but I guess I'm misunderstanding something
/Daniel