| 1 | #! perl | ||
| 2 | |||
| 3 | use strict; | ||
| 4 | use warnings; | ||
| 5 | |||
| 6 | package Comics::Plugin::TheMinistryOfAbnormality; | ||
| 7 | |||
| 8 | use parent qw(Comics::Fetcher::Single); | ||
| 9 | |||
| 10 | our $VERSION = "1.00"; | ||
| 11 | |||
| 12 | our $name = "The Ministry of Abnormality"; | ||
| 13 | our $url = "http://www.theministryofabnormality.com/"; | ||
| 14 | |||
| 15 | # CHANGED BEYOND REPAIR | ||
| 16 | our $disabled = 1; | ||
| 17 | |||
| 18 | our $pattern = | ||
| 19 | qr{ <div \s+ | ||
| 20 | class="entry-thumb"> \s+ | ||
| 21 | <a \s+ | ||
| 22 | href="http://www.theministryofabnormality.com/\?p=\d+" \s+ | ||
| 23 | title="(?<title>.*?)" \s* | ||
| 24 | > \s* | ||
| 25 | <img \s+ | ||
| 26 | width="\d+" \s+ height="\d+" \s+ | ||
| 27 | src="(?<url>http://www.theministryofabnormality.com/ | ||
| 28 | wp-content/uploads/\d+/\d+/ | ||
| 29 | (?<image>.*?\.\w+))" \s+ | ||
| 30 | class=".*?" \s+ alt=".*?" | ||
| 31 | }six; | ||
| 32 | |||
| 33 | |||
| 34 | # Important: Return the package name! | ||
| 35 | __PACKAGE__; |