| 1 | #! perl | ||
| 2 | |||
| 3 | use strict; | ||
| 4 | use warnings; | ||
| 5 | |||
| 6 | package Comics::Plugin::JesusAndMo; | ||
| 7 | |||
| 8 | use parent qw(Comics::Fetcher::Single); | ||
| 9 | |||
| 10 | our $VERSION = "1.00"; | ||
| 11 | |||
| 12 | our $name = "Jesus and Mo"; | ||
| 13 | our $url = "https://www.jesusandmo.net/"; | ||
| 14 | our $pattern = | ||
| 15 | qr{ <img \s+ | ||
| 16 | src="(?<url>https?://www.jesusandmo.net/wp-content/uploads/ | ||
| 17 | (?<image>[^./]+\.\w+))" \s+ | ||
| 18 | alt="(?<alt>.*?)" \s+ | ||
| 19 | title="(?<title>.*?)" \s+ | ||
| 20 | /> | ||
| 21 | }x; | ||
| 22 | |||
| 23 | # Important: Return the package name! | ||
| 24 | __PACKAGE__; |