blib/lib/Comics/Plugin/DoodleForFood.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::DoodleForFood;
7  
8 #### NOTE: Requires OK from Oath/Tumbler.
9  
10 use parent qw(Comics::Fetcher::Single);
11  
12 our $VERSION = "1.03";
13  
14 our $name = "Doodle For Food";
15 our $url = "https://www.doodleforfood.com/";
16  
17 # Can't get it to work anymore.
18 our $disabled = 1;
19  
20 our $pattern =
21 qr{ class="tmblr-full"> \s*
22 <img \s+
23 src="?(?<url>https?://\d+\.media\.tumblr\.com/
24 [0-9a-f]+/
25 (?<image>tumblr_.+?_1280\.\w+))"? \s+
26 alt="(?<title>.+?)"
27 }xs;
28  
29 # Important: Return the package name!
30 __PACKAGE__;