| 1 | #! perl | ||
| 2 | |||
| 3 | use strict; | ||
| 4 | use warnings; | ||
| 5 | |||
| 6 | package Comics::Plugin::CtrlAltDel; | ||
| 7 | |||
| 8 | use parent qw(Comics::Fetcher::Single); | ||
| 9 | |||
| 10 | our $VERSION = "1.02"; | ||
| 11 | |||
| 12 | our $name = "CTRL+ALT+DEL"; | ||
| 13 | our $url = "http://www.cad-comic.com/"; | ||
| 14 | our $pattern = | ||
| 15 | qr{ <img \s+ | ||
| 16 | class="comic-display" \s+ | ||
| 17 | src="(?<url>https?://(?:.*\.)?cad-comic\.com/ | ||
| 18 | wp-content/uploads/\d+/\d+/ | ||
| 19 | (?<image>.*?\.\w+))" \s+ | ||
| 20 | }xs; | ||
| 21 | |||
| 22 | # Important: Return the package name! | ||
| 23 | __PACKAGE__; |