@@ -16,12 +16,9 @@ Comics::Fetcher::GoComics -- Fetcher for GoComics.
1616 package Comics::Plugin::Garfield;
1717 use parent qw(Comics::Fetcher::GoComics);
1818
19- sub register {
20- shift->SUPER::register
21- ( { name => "Garfield",
22- url => "http://www.comics.com/garfield",
23- } );
24- }
19+ our $name = "Garfield";
20+ our $url = "https://www.comics.com/garfield";
21+
2522 # Return the package name.
2623 __PACKAGE__;
2724
@@ -54,10 +51,11 @@ Fetcher specific arguments:
5451
5552=cut
5653
57- our $VERSION = " 1.03 " ;
54+ our $VERSION = " 1.04 " ;
5855
5956# Page contents changed, january 10, 2017.
6057# Page contents changed, april 5, 2018.
58+ # Page contents changed, april 1, 2025.
6159
6260sub register {
6361 my ( $pkg , $init ) = @_ ;
@@ -72,12 +70,8 @@ sub register {
7270 # Add the standard pattern for GoComics comics.
7371 $self -> {patterns } =
7472 [
75- qr { href="(?<url>.*?)">Comics</a>
76- } x ,
77- qr { <meta \s + property="og:image" \s +
78- content="(?<url>https?://featureassets.amuniversal.com/assets/
79- (?<image>[0-9a-f]+))" \s +
80- />
73+ qr { (?<url>https://featureassets.gocomics.com/assets/
74+ (?<image>[0-9a-f]+)) \?
8175 } x ,
8276 ];
8377
0 commit comments