2012-01-19, 11:47
el_Paraguayo Wrote:OK, I can tell you how to edit the scraper to add the prefix but it won't be until the end of the day (UK time).
Day later than promised (blackout!).
Here's the modded code for you, kokonutcreme.
First off, make a backup copy of the imdbrt.xml file in the metadata.imbdrt.com folder.
Then open the original in your favourite editor and scroll down to the "ParseIMDBAusCert" section. My mods are in bold.
Code:
<ParseIMDBAusCert dest="5">
<RegExp input="$$1" output="<details><mpaa>[b]Australia[/b]:\1</mpaa></details>" dest="5">
<expression>(?:>\s*Australia:)((?:G)|(?:PG)|(?:M)|(?:MA)|(?:R)|(?:X))(?:</a>)</expression>
</RegExp>
<RegExp input="$$5" output="<details><mpaa>[b]Australia:[/b]MA15+</mpaa></details>" dest="5">
<expression>MA</expression>
</RegExp>
<RegExp input="$$5" output="<details><mpaa>[b]Australia:[/b]R18+</mpaa></details>" dest="5">
<expression>R</expression>
</RegExp>
<RegExp input="$$5" output="<details><mpaa>[b]Australia:[/b]X18+</mpaa></details>" dest="5">
<expression>X</expression>
</RegExp>
</ParseIMDBAusCert>
I haven't tested it, but it should work