| 1 | #! perl | ||
| 2 | |||
| 3 | use strict; | ||
| 4 | use warnings; | ||
| 5 | |||
| 6 | package Comics::Plugin::PretendsToBeDrawing; | ||
| 7 | |||
| 8 | #### NOTE: PtbD now uses individual panes for the comic. Hard to do. | ||
| 9 | |||
| 10 | our $disabled = 1; | ||
| 11 | |||
| 12 | use parent qw(Comics::Fetcher::Single); | ||
| 13 | |||
| 14 | our $VERSION = "1.03"; | ||
| 15 | |||
| 16 | our $name = "Pretends To Be Drawing"; | ||
| 17 | our $url = "http://ptbd.jwels.berlin/"; | ||
| 18 | |||
| 19 | our $pattern = | ||
| 20 | qr{ <div \s+ class="mainpanel" > \s+ | ||
| 21 | <img \s+ | ||
| 22 | class="comic\s*" \s+ | ||
| 23 | alt="(?<alt>.*?)" \s+ | ||
| 24 | title="(?<title>.*?)" \s+ | ||
| 25 | itemprop="image" \s+ | ||
| 26 | src="(?<url>/comicfiles/full/(?<image>.+?\.\w+))" | ||
| 27 | }sx; | ||
| 28 | |||
| 29 | # Important: Return the package name! | ||
| 30 | __PACKAGE__; |