Browse Source

Fix doujin API after e-hentai API endpoint change

spaghetti 8 years ago
parent
commit
455f119513
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      sections/ajax/doujin.php

+ 1
- 1
sections/ajax/doujin.php View File

21
 } else {
21
 } else {
22
 
22
 
23
   $data = json_encode(["method" => "gdata", "gidlist" => [[$gid, $token]], "namespace" => 1]);
23
   $data = json_encode(["method" => "gdata", "gidlist" => [[$gid, $token]], "namespace" => 1]);
24
-  $curl = curl_init('http://g.e-hentai.org/api.php');
24
+  $curl = curl_init('http://e-hentai.org/api.php');
25
   curl_setopt($curl, CURLOPT_CUSTOMREQUEST, "POST");
25
   curl_setopt($curl, CURLOPT_CUSTOMREQUEST, "POST");
26
   curl_setopt($curl, CURLOPT_POSTFIELDS, $data);
26
   curl_setopt($curl, CURLOPT_POSTFIELDS, $data);
27
   curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
27
   curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);

Loading…
Cancel
Save