mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-24 03:57:22 +08:00
fix listRatings() if no PT-Gen data error
This commit is contained in:
@@ -76,7 +76,7 @@ class Torrent
|
|||||||
}
|
}
|
||||||
$ptGenInfo = json_decode($torrentInfo['pt_gen'], true);
|
$ptGenInfo = json_decode($torrentInfo['pt_gen'], true);
|
||||||
$log = "torrent: " . $torrentInfo['id'];
|
$log = "torrent: " . $torrentInfo['id'];
|
||||||
$siteIdAndRating = $ptGen->listRatings($ptGenInfo, $torrentInfo['url']);
|
$siteIdAndRating = $ptGen->listRatings($ptGenInfo ?? [], $torrentInfo['url']);
|
||||||
$log .= "siteIdAndRating: " . json_encode($siteIdAndRating);
|
$log .= "siteIdAndRating: " . json_encode($siteIdAndRating);
|
||||||
do_log($log);
|
do_log($log);
|
||||||
return $ptGen->buildRatingSpan($siteIdAndRating);
|
return $ptGen->buildRatingSpan($siteIdAndRating);
|
||||||
|
|||||||
Reference in New Issue
Block a user