2011-05-29, 10:28
Thanks for this scraper.
I'm using it to get BBFC ratings but have come across a slight issue.
The ratings come back without the "UK:" prefix which means that the skin I'm using (cirrus extended) does not display the logos.
I could edit the skin to just expect UK ratings without the prefix as I have a rudimentary knowledge of skinning. Alternatively, I could try to update the scraper xml but unfortunately I've got no idea how it works and where I'd need to add the "UK:" bit.
However, given that there is this in the code:
it looks like the prefix is there but I've no idea what the RegEx is doing to it!
Ember Media Manager includes the prefix on ratings so I think it should be there but unfortunately it doesn't run on Linux.
Any tips would be very helpful.
EDIT:
Fixed it.
I'm using it to get BBFC ratings but have come across a slight issue.
The ratings come back without the "UK:" prefix which means that the skin I'm using (cirrus extended) does not display the logos.
I could edit the skin to just expect UK ratings without the prefix as I have a rudimentary knowledge of skinning. Alternatively, I could try to update the scraper xml but unfortunately I've got no idea how it works and where I'd need to add the "UK:" bit.
However, given that there is this in the code:
Code:
<ParseIMDBUKCert dest="5">
<RegExp input="$$1" output="<details><mpaa>\1</mpaa></details>" dest="5">
<expression>(?:>\s*[b]UK[/b]:)((?:U)|(?:PG)|(?:12)|(?:12A)|(?:15)|(?:18)|(?:R18))(?:</a>)</expression>
</RegExp>
</ParseIMDBUKCert>
Ember Media Manager includes the prefix on ratings so I think it should be there but unfortunately it doesn't run on Linux.
Any tips would be very helpful.
EDIT:
Fixed it.
Code:
<ParseIMDBUKCert dest="5">
<RegExp input="$$1" output="<details><mpaa>[b]UK:[/b]\1</mpaa></details>" dest="5">
<expression>(?:>\s*UK:)((?:U)|(?:PG)|(?:12)|(?:12A)|(?:15)|(?:18)|(?:R18))(?:</a>)</expression>
</RegExp>
</ParseIMDBUKCert>