Browse Source

Fix JDB autofill image

xoru 1 year ago
parent
commit
d7c329d9ed
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      sections/ajax/autofill/jav.php

+ 1
- 1
sections/ajax/autofill/jav.php View File

@@ -135,7 +135,7 @@ if (!$debug && $Cache->get_value('jav_fill_json_'.$cn)) {
135 135
       $year = substr($jdb->query("//b[contains(., 'Release Date:')]")[0]->nextSibling->nodeValue, 1, 4);
136 136
     }
137 137
     if (!$image) {
138
-      $image = $jdb->query("//img[contains(@alt, ' download or stream.')]")->item(0)->getAttribute('src');
138
+      $image = $jdb->query("//img[@alt='" . $cn . "']")->item(0)->getAttribute('src');
139 139
     }
140 140
     if (substr($image, 0, 2) == '//') {
141 141
       $image = 'https:'.$image;

Loading…
Cancel
Save