|
@@ -63,12 +63,12 @@ if ($Cache->get_value('doujin_json_'.$gid)) {
|
63
|
63
|
$cover = $json['thumb'];
|
64
|
64
|
// and let's see if we can replace it with something better
|
65
|
65
|
$gallery_page = file_get_contents($url);
|
66
|
|
- $re = '/'.preg_quote('-0px 0 no-repeat"><a href="').'(.*)'.preg_quote('"><img alt="01"').'/';
|
|
66
|
+ $re = '/'.preg_quote('"><img id="img" src="').'([^<]*)'.preg_quote('" style=').'/';
|
67
|
67
|
preg_match($re, $gallery_page, $galmatch);
|
68
|
68
|
// were we able to find the first page of the gallery?
|
69
|
69
|
if ($galmatch[1]) {
|
70
|
70
|
$image_page = file_get_contents($galmatch[1]);
|
71
|
|
- $re = '/'.preg_quote('"><img src="').'([^<]*)'.preg_quote('" style=').'/';
|
|
71
|
+ $re = '/'.preg_quote('"><img id="img" src="').'([^<]*)'.preg_quote('" style=').'/';
|
72
|
72
|
preg_match($re, $image_page, $imgmatch);
|
73
|
73
|
// were we able to find the image url?
|
74
|
74
|
if ($imgmatch[1]) {
|