« blib/lib/Comics/Plugin/PlayerVsPlayer.pm
↑ Summary
blib/lib/Comics/Plugin/PretendsToBeDrawing.pm »
| 1 | #! perl | ||
| 2 | |||
| 3 | use strict; | ||
| 4 | use warnings; | ||
| 5 | |||
| 6 | package Comics::Plugin::PoorlyDrawnLines; | ||
| 7 | |||
| 8 | use parent qw(Comics::Fetcher::Single); | ||
| 9 | |||
| 10 | our $VERSION = "1.07"; | ||
| 11 | |||
| 12 | our $name = "Poorly Drawn Lines"; | ||
| 13 | our $url = "https://www.poorlydrawnlines.com/"; | ||
| 14 | |||
| 15 | our $pattern = | ||
| 16 | qr{ <div \s+ class="wp-block-image[^"]*"> \s* | ||
| 17 | <figure \s+ class=".*?"> | ||
| 18 | <a \s* href=".*?"> | ||
| 19 | <img \s+ (?: (?:loading|width|height|decoding) = "[^"]+" \s+ )* | ||
| 20 | src="(?<url>https://poorlydrawnlines.com/wp-content/uploads/ | ||
| 21 | \d+/\d+/ | ||
| 22 | (?<image>.+?\.\w+))" | ||
| 23 | }x; | ||
| 24 | |||
| 25 | # Important: Return the package name! | ||
| 26 | __PACKAGE__; |