| 1 | #! perl | ||
| 2 | |||
| 3 | use strict; | ||
| 4 | use warnings; | ||
| 5 | |||
| 6 | package Comics::Plugin::DirkJan; | ||
| 7 | |||
| 8 | use parent qw(Comics::Fetcher::Single); | ||
| 9 | |||
| 10 | our $VERSION = "1.00"; | ||
| 11 | |||
| 12 | our $name = "DirkJan"; | ||
| 13 | our $url = "https://dirkjan.nl/"; | ||
| 14 | our $pattern = | ||
| 15 | qr{ <meta \s+ property="og:image" \s* | ||
| 16 | content="(?<url>https://dirkjan.nl/wp-content/uploads/ | ||
| 17 | \d+/\d+/(?<image>.*?\.\w+))" \s* /> | ||
| 18 | }x; | ||
| 19 | |||
| 20 | # Important: Return the package name! | ||
| 21 | __PACKAGE__; |