| 1 | #! perl | ||
| 2 | |||
| 3 | use strict; | ||
| 4 | use warnings; | ||
| 5 | |||
| 6 | package Comics::Plugin::VGCats; | ||
| 7 | |||
| 8 | use parent qw(Comics::Fetcher::Single); | ||
| 9 | |||
| 10 | our $VERSION = "0.01"; | ||
| 11 | |||
| 12 | sub register { | ||
| 13 | shift->SUPER::register | ||
| 14 | ( { name => "VG Cats", | ||
| 15 | url => "http://www.vgcats.com/comics/", | ||
| 16 | pat => | ||
| 17 | qr{ <img \s+ | ||
| 18 | src="(?<url>images/(?<image>.*?\.\w+))" \s+ | ||
| 19 | width="\d+" \s+ | ||
| 20 | height="\d+" | ||
| 21 | }six, | ||
| 22 | } ); | ||
| 23 | } | ||
| 24 | |||
| 25 | # Important: Return the package name! | ||
| 26 | __PACKAGE__; |