'title' => $json->title,
'genres' => $json->genres,
'developer' => $json->developer->name,
+ 'developerUrl' => $json->stouyapi->{'developer-url'} ?? null,
'suggestedAge' => $json->suggestedAge,
'apkVersion' => $json->version->number,
'apkTimestamp' => $json->version->publishedAt,
$json = json_decode(file_get_contents($discoverFile));
$title = $json->title . ' OUYA games';
+ $subtitle = $json->stouyapi->subtitle ?? null;
+
$sections = [];
foreach ($json->rows as $row) {
$section = (object) [
$appsDir . $json->version->uuid . '-download.json'
)
);
+
$apkDownloadUrl = $downloadJson->app->downloadLink;
+ /*
+ if (isset($json->premium) && $json->premium) {
+ $apkDownloadUrl = null;
+ }
+ */
+ $developerDetailsUrl = null;
+ if (isset($json->developer->url) && $json->developer->url) {
+ $developerDetailsUrl = '../discover/' . str_replace(
+ 'ouya://launcher/discover/',
+ '',
+ $json->developer->url
+ ) . '.htm';
+ }
+
+ $internetArchiveUrl = $json->stouyapi->{'internet-archive'} ?? null;
+ $developerUrl = $json->stouyapi->{'developer-url'} ?? null;
+
$pushUrl = $GLOBALS['pushToMyOuyaUrl']
. '?game=' . urlencode($json->apk->package);