diff --git a/bridges/GameBananaBridge.php b/bridges/GameBananaBridge.php
index 591ac0e9..9a0a0686 100644
--- a/bridges/GameBananaBridge.php
+++ b/bridges/GameBananaBridge.php
@@ -28,6 +28,8 @@ class GameBananaBridge extends BridgeAbstract
return 'https://images.gamebanana.com/static/img/favicon/favicon.ico';
}
+ private $title;
+
public function collectData()
{
$url = 'https://api.gamebanana.com/Core/List/New?itemtype=Mod&page=1&gameid=' . $this->getInput('gid');
@@ -38,7 +40,7 @@ class GameBananaBridge extends BridgeAbstract
$json_list = json_decode($api_response, true); // Get first page mod list
$url = 'https://api.gamebanana.com/Core/Item/Data?itemtype[]=Game&fields[]=name&itemid[]=' . $this->getInput('gid');
- $fields = 'name,Owner().name,text,screenshots,Files().aFiles(),date,Url().sProfileUrl(),udate';
+ $fields = 'name,Owner().name,text,screenshots,Files().aFiles(),date,Url().sProfileUrl(),udate,Updates().aLatestUpdates()';
foreach ($json_list as $element) { // Build api request to minimize API calls
$mid = $element[1];
$url .= '&itemtype[]=Mod&fields[]=' . $fields . '&itemid[]=' . $mid;
@@ -72,6 +74,10 @@ class GameBananaBridge extends BridgeAbstract
foreach ($img_list as $img_element) {
$item['content'] .= '';
}
+ if ($this->getInput('updates') && sizeof($element[8]) > 0) {
+ $item['content'] .= '
Update: ' . $element[8][0]['_sTitle'];
+ $item['content'] .= '
' . $element[8][0]['_sText'] . '