mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-24 12:07:23 +08:00
fix torrentrss descr
This commit is contained in:
@@ -74,13 +74,14 @@ class Torrent
|
||||
if (is_null($ptGen)) {
|
||||
$ptGen = new PTGen();
|
||||
}
|
||||
$ptGenInfo = $torrentInfo['pt_gen'];
|
||||
if (!is_array($torrentInfo['pt_gen']) && is_string($torrentInfo['pt_gen'])) {
|
||||
$ptGenInfo = json_decode($ptGenInfo, true);
|
||||
}
|
||||
// $ptGenInfo = $torrentInfo['pt_gen'];
|
||||
// if (!is_array($torrentInfo['pt_gen']) && is_string($torrentInfo['pt_gen'])) {
|
||||
// $ptGenInfo = json_decode($ptGenInfo, true);
|
||||
// }
|
||||
|
||||
$log = "torrent: " . $torrentInfo['id'];
|
||||
$siteIdAndRating = $ptGen->listRatings($ptGenInfo ?? [], $torrentInfo['url']);
|
||||
// $siteIdAndRating = $ptGen->listRatings($ptGenInfo ?? [], $torrentInfo['url']);
|
||||
$siteIdAndRating = $ptGen->listRatings([], $torrentInfo['url']);
|
||||
$log .= "siteIdAndRating: " . json_encode($siteIdAndRating);
|
||||
do_log($log);
|
||||
return $ptGen->buildRatingSpan($siteIdAndRating);
|
||||
|
||||
Reference in New Issue
Block a user