blib/lib/Comics/Plugin/PretendsToBeDrawing.pm untested

filter: Statementstmt 0.0% 0 / 15 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 3 Podpod n/a totaltotal 0.0% 0 / 18 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
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__;