| 1 | #! perl | ||
| 2 | |||
| 3 | use strict; | ||
| 4 | use warnings; | ||
| 5 | |||
| 6 | package Comics::Plugin::Channelate; | ||
| 7 | |||
| 8 | use parent qw(Comics::Fetcher::Single); | ||
| 9 | |||
| 10 | our $VERSION = "1.04"; | ||
| 11 | |||
| 12 | our $name = "Channelate"; | ||
| 13 | our $url = "http://channelate.com/"; | ||
| 14 | |||
| 15 | our $pattern = | ||
| 16 | qr{ <div \s+ class="comic-table" > \s* | ||
| 17 | <div \s+ id="comic" > \s* | ||
| 18 | <span \s+ class="comic-(?: tall | wide | square )" > \s* | ||
| 19 | <img \s+ | ||
| 20 | src="(?<url>https?://www.channelate.com/wp-content/uploads/\d+/\d+/ | ||
| 21 | (?<image>.+?\.\w+))" \s+ | ||
| 22 | alt="(?<alt>.*?)" \s+ | ||
| 23 | title="(?<title>.*?)" | ||
| 24 | }sx; | ||
| 25 | |||
| 26 | # Important: Return the package name! | ||
| 27 | __PACKAGE__; |