| 1 | #! perl | ||
| 2 | |||
| 3 | use strict; | ||
| 4 | use warnings; | ||
| 5 | |||
| 6 | package Comics::Plugin::LolNein; | ||
| 7 | |||
| 8 | use parent qw(Comics::Fetcher::Single); | ||
| 9 | |||
| 10 | our $VERSION = "1.01"; | ||
| 11 | |||
| 12 | our $name = "LolNein"; | ||
| 13 | our $url = "http://lolnein.com"; | ||
| 14 | |||
| 15 | our @patterns = | ||
| 16 | ( qr{ Last \s+ comic: \s+ <a \s+ href="(?<url>.*?)"> | ||
| 17 | }sx, | ||
| 18 | qr{ <img \s+ property="og:image" \s+ class="center" \s+ | ||
| 19 | src="(?<url>/comics/ | ||
| 20 | (?<image>.+?\.\w+))" \s+ | ||
| 21 | (?:title|alt)="(?<title>.*?)" | ||
| 22 | }sx, | ||
| 23 | ); | ||
| 24 | |||
| 25 | our $disabled = 1; # movies now | ||
| 26 | |||
| 27 | # Important: Return the package name! | ||
| 28 | __PACKAGE__; |