Skip to content

Commit e25ceee

Browse files
committed
Fix GoComics fetcher.
1 parent 7829fbf commit e25ceee

2 files changed

Lines changed: 9 additions & 7 deletions

File tree

Changes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ Revision history for Comics
22

33
0.00
44

5+
Fix GoComics fetcher.
56
Fix Lectrr (yields random cartoon).
67
Fix SkeletonClaw, PoorlyDrawnLines, PBFComics, JHall, FokkeEnSukke.
78

lib/Comics/Fetcher/GoComics.pm

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,12 @@ Fetcher specific arguments:
5151
5252
=cut
5353

54-
our $VERSION = "1.04";
54+
our $VERSION = "1.05";
5555

5656
# Page contents changed, january 10, 2017.
5757
# Page contents changed, april 5, 2018.
5858
# Page contents changed, april 1, 2025.
59+
# Page contents changed, may 8, 2025.
5960

6061
sub register {
6162
my ( $pkg, $init ) = @_;
@@ -70,12 +71,12 @@ sub register {
7071
# Add the standard pattern for GoComics comics.
7172
$self->{patterns} =
7273
[
73-
qr{ <link \s+
74-
rel="preload" \s+
75-
as="image" \s+
76-
imageSrcSet="
77-
(?<url>https://featureassets.gocomics.com/assets/
78-
(?<image>[0-9a-f]+))
74+
qr{ <div \s+ class="ShowComicViewer_
75+
.*?
76+
"url":
77+
"(?<url>https://featureassets.gocomics.com/assets/
78+
(?<image>[0-9a-f]+))"
79+
,"author"
7980
}x,
8081
];
8182

0 commit comments

Comments
 (0)