mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-30 01:38:54 +00:00
Add check for platforms
This commit is contained in:
@@ -852,12 +852,14 @@ class Console
|
||||
|
||||
$platform = '';
|
||||
|
||||
foreach ($game->platforms as $platforms) {
|
||||
$platforms = IGDB::getPlatform($platforms);
|
||||
similar_text($platforms->name, $gamePlatform, $percent);
|
||||
if ($percent >= 85) {
|
||||
$platform = $platforms->name;
|
||||
break;
|
||||
if (! empty($game->platforms)) {
|
||||
foreach ($game->platforms as $platforms) {
|
||||
$platforms = IGDB::getPlatform($platforms);
|
||||
similar_text($platforms->name, $gamePlatform, $percent);
|
||||
if ($percent >= 85) {
|
||||
$platform = $platforms->name;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user