mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-28 06:57:22 +08:00
skip offer + pt-gen fill subtitle
This commit is contained in:
+2
-2
@@ -39,9 +39,9 @@ function getPtGen($params)
|
||||
$rep = new Nexus\PTGen\PTGen();
|
||||
$result = $rep->generate($params['url']);
|
||||
if ($rep->isRawPTGen($result)) {
|
||||
return $result['format'];
|
||||
return $result;
|
||||
} elseif ($rep->isIyuu($result)) {
|
||||
return $result['data']['format'];
|
||||
return $result['data'];
|
||||
} else {
|
||||
return '';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user