| 1 | #! perl | ||
| 2 | |||
| 3 | use strict; | ||
| 4 | use warnings; | ||
| 5 | |||
| 6 | package Comics::Plugin::GoneIntoRapture; | ||
| 7 | |||
| 8 | #### NOTE: Requires OK from Oath/Tumbler. | ||
| 9 | |||
| 10 | use parent qw(Comics::Fetcher::Single); | ||
| 11 | |||
| 12 | our $VERSION = "1.01"; | ||
| 13 | |||
| 14 | our $name = "Gone into Rapture"; | ||
| 15 | our $url = "http://goneintorapture.com/"; | ||
| 16 | |||
| 17 | # Can't get it to work anymore. | ||
| 18 | our $disabled = 1; | ||
| 19 | |||
| 20 | our $pattern = | ||
| 21 | qr{ <figure \s+ class="photo-hires-item"> \s+ | ||
| 22 | <a .*? > \s* | ||
| 23 | <img \s+ | ||
| 24 | src="(?<url>https?://.*?.media.tumblr.com/.*?/ | ||
| 25 | (?<image>.+?\.\w+))" \s+ | ||
| 26 | (?: alt|title )= | ||
| 27 | }sx; | ||
| 28 | |||
| 29 | # Important: Return the package name! | ||
| 30 | __PACKAGE__; |