Skip to content

Commit c46690e

Browse files
committed
Fix GoComics fetcher.
1 parent 3080cec commit c46690e

4 files changed

Lines changed: 12 additions & 22 deletions

File tree

Changes

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Revision history for Comics
22

3-
1.22 2025-03-30
3+
1.23 2025-04-02
44

55
Fix GoComics fetcher.
66

lib/Comics/Fetcher/GoComics.pm

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -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

6260
sub 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

lib/Comics/Plugin/9ChickweedLane.pm

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,10 @@ package Comics::Plugin::9ChickweedLane;
77

88
use parent qw(Comics::Fetcher::GoComics);
99

10-
our $VERSION = "0.02";
10+
our $VERSION = "1.02";
1111

12-
sub register {
13-
shift->SUPER::register
14-
( { name => "9 Chickweed Lane",
15-
url => "https://www.gocomics.com/9_chickweed_lane",
16-
} );
17-
}
12+
our $name = "9 Chickweed Lane";
13+
our $url = "https://www.gocomics.com/9-chickweed-lane";
1814

1915
# Important: Return the package name!
2016
__PACKAGE__;

lib/Comics/Version.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# This file is generated. Do not edit!
22
package Comics::Version;
3-
our $VERSION = "1.21";
3+
our $VERSION = "1.23";

0 commit comments

Comments
 (0)