skip offer + pt-gen fill subtitle

This commit is contained in:
xiaomlove
2022-09-04 15:56:19 +08:00
parent 7613a05951
commit 589332afb3
22 changed files with 80 additions and 11 deletions
+2 -2
View File
@@ -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 '';
}