Browse Source

Fix title (again)

xoru 5 years ago
parent
commit
ed8d410a1f
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

108
   }
108
   }
109
   if ($jdb_page) {
109
   if ($jdb_page) {
110
     if (!$title) {
110
     if (!$title) {
111
-      $title = trim(substr($jdb->query("//h1[contains(@class, 'entry-title')]")[0]->nodeValue, strlen($cn) + 3));
111
+      $title = trim($jdb->query("//b[contains(., 'Translated Title:')]")[0]->nextSibling->nodeValue);
112
     }
112
     }
113
     if (!$studio) {
113
     if (!$studio) {
114
       $studio = $jdb->query("//b[contains(., 'Studio:')]")[0]->nextSibling->nodeValue;
114
       $studio = $jdb->query("//b[contains(., 'Studio:')]")[0]->nextSibling->nodeValue;

Loading…
Cancel
Save