Skip to content

Commit

Permalink
Fix pattern for Nozzman.
Browse files Browse the repository at this point in the history
  • Loading branch information
sciurius committed Aug 5, 2019
1 parent f2a258c commit d36c0eb
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 12 deletions.
25 changes: 14 additions & 11 deletions lib/Comics/Plugin/Nozzman.pm
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,21 @@ package Comics::Plugin::Nozzman;

use parent qw(Comics::Fetcher::Single);

our $VERSION = "0.01";
our $VERSION = "1.00";

sub register {
shift->SUPER::register
( { name => "Nozzman",
url => "http://www.nozzman.nl/cartoons/",
pat =>
qr{ data-image="(?<url>https://static.*?squarespace.com/static/
[0-9a-f]+/t/(?<image>[0-9a-f]+/\d+/))"
}six,
} );
}
our $name = "Nozzman";
our $url = "http://www.nozzman.nl/cartoons/";

our $pattern =
qr{ <noscript>
<img \s+
src="(?<url>https://images.squarespace-cdn.com/
content/v1/
[-_0-9a-z]+/
[-_0-9a-z]+/
[-_0-9a-z]+/
(?<image>[^./]+\.\w+))"
}ix;

# Important: Return the package name!
__PACKAGE__;
2 changes: 1 addition & 1 deletion lib/Comics/Version.pm
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# This file is generated. Do not edit!
package Comics::Version;
our $VERSION = "1.140_007";
our $VERSION = "1.140_008";

0 comments on commit d36c0eb

Please sign in to comment.