mirror of
https://github.com/WhatCD/Gazelle.git
synced 2024-12-13 19:06:27 +00:00
Empty commit
This commit is contained in:
parent
1050e24946
commit
7ed6df4ca7
@ -91,16 +91,16 @@ function generate_tag_json($Caption, $Tag, $Details, $Limit) {
|
||||
foreach ($Details as $Detail) {
|
||||
$results[] = array(
|
||||
'name' => $Detail['Name'],
|
||||
'uses' => $Detail['Uses'],
|
||||
'posVotes' => $Detail['PosVotes'],
|
||||
'negVotes' => $Detail['NegVotes']
|
||||
'uses' => (int) $Detail['Uses'],
|
||||
'posVotes' => (int) $Detail['PosVotes'],
|
||||
'negVotes' => (int) $Detail['NegVotes']
|
||||
);
|
||||
}
|
||||
|
||||
return array(
|
||||
'caption' => $Caption,
|
||||
'tag' => $Tag,
|
||||
'limit' => $Limit,
|
||||
'limit' => (int) $Limit,
|
||||
'results' => $results
|
||||
);
|
||||
}
|
||||
|
@ -162,32 +162,32 @@ function generate_torrent_json($Caption, $Tag, $Details, $Limit) {
|
||||
|
||||
// Append to the existing array.
|
||||
$results[] = array(
|
||||
'torrentId' => $TorrentID,
|
||||
'groupId' => $GroupID,
|
||||
'torrentId' => (int) $TorrentID,
|
||||
'groupId' => (int) $GroupID,
|
||||
'artist' => $TruncArtist,
|
||||
'groupName' => $GroupName,
|
||||
'groupCategory' => $GroupCategoryID,
|
||||
'groupYear' => $GroupYear,
|
||||
'groupCategory' => (int) $GroupCategory,
|
||||
'groupYear' => (int) $GroupYear,
|
||||
'remasterTitle' => $RemasterTitle,
|
||||
'format' => $Format,
|
||||
'encoding' => $Encoding,
|
||||
'hasLog' => $HasLog,
|
||||
'hasCue' => $HasCue,
|
||||
'hasLog' => $HasLog == 1,
|
||||
'hasCue' => $HasCue == 1,
|
||||
'media' => $Media,
|
||||
'scene' => $Scene,
|
||||
'year' => $Year,
|
||||
'scene' => $Scene == 1,
|
||||
'year' => (int) $Year,
|
||||
'tags' => $TagList,
|
||||
'snatched' => $Snatched,
|
||||
'seeders' => $Seeders,
|
||||
'leechers' => $Leechers,
|
||||
'data' => $Data
|
||||
'snatched' => (int) $Snatched,
|
||||
'seeders' => (int) $Seeders,
|
||||
'leechers' => (int) $Leechers,
|
||||
'data' => (int) $Data
|
||||
);
|
||||
}
|
||||
|
||||
return array(
|
||||
'caption' => $Caption,
|
||||
'tag' => $Tag,
|
||||
'limit' => $Limit,
|
||||
'limit' => (int) $Limit,
|
||||
'results' => $results
|
||||
);
|
||||
}
|
||||
|
@ -94,20 +94,20 @@ function generate_user_json($Caption, $Tag, $Details, $Limit) {
|
||||
$results = array();
|
||||
foreach($Details as $Details) {
|
||||
$results[] = array(
|
||||
'id' => $Detail['ID'],
|
||||
'id' => (int) $Detail['ID'],
|
||||
'username' => $Detail['Username'],
|
||||
'uploaded' => $Detail['Uploaded'],
|
||||
'upSpeed' => $Detail['UpSpeed'],
|
||||
'downloaded' => $Detail['Downloaded'],
|
||||
'downSpeed' => $Detail['DownSpeed'],
|
||||
'numUploads' => $Detail['NumUploads'],
|
||||
'uploaded' => (float) $Detail['Uploaded'],
|
||||
'upSpeed' => (float) $Detail['UpSpeed'],
|
||||
'downloaded' => (float) $Detail['Downloaded'],
|
||||
'downSpeed' => (float) $Detail['DownSpeed'],
|
||||
'numUploads' => (int) $Detail['NumUploads'],
|
||||
'joinDate' => $Detail['JoinDate']
|
||||
);
|
||||
}
|
||||
return array(
|
||||
'caption' => $Caption,
|
||||
'tag' => $Tag,
|
||||
'limit' => $Limit,
|
||||
'limit' => (int) $Limit,
|
||||
'results' => $results
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user