| 1 | #! perl | ||
| 2 | |||
| 3 | use strict; | ||
| 4 | use warnings; | ||
| 5 | |||
| 6 | package Comics::Plugin::GirlsWithSlingshots; | ||
| 7 | |||
| 8 | use parent qw(Comics::Fetcher::Single); | ||
| 9 | |||
| 10 | our $VERSION = "1.03"; | ||
| 11 | |||
| 12 | our $name = "Girls With Slingshots"; | ||
| 13 | our $url = "https://girlswithslingshots.com/"; | ||
| 14 | |||
| 15 | our $pattern = | ||
| 16 | qr{ <div \s+ id="cc-comicbody" > \s* | ||
| 17 | (?: <a \s+ href=".*?"> \s* )? | ||
| 18 | <img \s+ | ||
| 19 | title="(?<title>.*?)" \s+ | ||
| 20 | src="(?<url>(?:https?:)//(?:www\.)?girlswithslingshots.com/comics/(?<image>.+\.\w+))" \s+ | ||
| 21 | }x; | ||
| 22 | |||
| 23 | # Important: Return the package name! | ||
| 24 | __PACKAGE__; |