mirror of
https://github.com/WhatCD/Gazelle.git
synced 2025-01-31 18:41:37 +00:00
Empty commit
This commit is contained in:
parent
09211efecc
commit
2617c891e5
@ -354,15 +354,29 @@ function header_link($SortKey,$DefaultWay="desc") {
|
|||||||
list($Artists, $GroupCatalogueNumber, $ExtendedArtists, $GroupID2, $GroupName, $GroupRecordLabel, $ReleaseType, $TagList, $Torrents, $GroupVanityHouse, $GroupYear, $CategoryID, $FreeTorrent, $HasCue, $HasLog, $TotalLeechers, $LogScore, $ReleaseType, $ReleaseType, $TotalSeeders, $MaxSize, $TotalSnatched, $GroupTime) = array_values($Data);
|
list($Artists, $GroupCatalogueNumber, $ExtendedArtists, $GroupID2, $GroupName, $GroupRecordLabel, $ReleaseType, $TagList, $Torrents, $GroupVanityHouse, $GroupYear, $CategoryID, $FreeTorrent, $HasCue, $HasLog, $TotalLeechers, $LogScore, $ReleaseType, $ReleaseType, $TotalSeeders, $MaxSize, $TotalSnatched, $GroupTime) = array_values($Data);
|
||||||
|
|
||||||
$TagList = explode(' ',str_replace('_','.',$TagList));
|
$TagList = explode(' ',str_replace('_','.',$TagList));
|
||||||
|
$JsonArtists = array();
|
||||||
if(count($Torrents)>1 || $CategoryID==1) {
|
if(count($Torrents)>1 || $CategoryID==1) {
|
||||||
// These torrents are in a group
|
// These torrents are in a group
|
||||||
if (!empty($ExtendedArtists[1]) || !empty($ExtendedArtists[4]) || !empty($ExtendedArtists[5]) || !empty($ExtendedArtists[6])) {
|
if (!empty($ExtendedArtists[1]) || !empty($ExtendedArtists[4]) || !empty($ExtendedArtists[5]) || !empty($ExtendedArtists[6])) {
|
||||||
unset($ExtendedArtists[2]);
|
unset($ExtendedArtists[2]);
|
||||||
unset($ExtendedArtists[3]);
|
unset($ExtendedArtists[3]);
|
||||||
$DisplayName = display_artists($ExtendedArtists, false, false, true);
|
$DisplayName = display_artists($ExtendedArtists, false, false, true);
|
||||||
|
foreach ($ExtendedArtists[1] as $Artist) {
|
||||||
|
$JsonArtists[] = array(
|
||||||
|
'id' => (int) $Artist['id'],
|
||||||
|
'name' => $Artist['name'],
|
||||||
|
'aliasid' => (int) $Artist['id']
|
||||||
|
);
|
||||||
|
}
|
||||||
} elseif(!empty($Artists)) {
|
} elseif(!empty($Artists)) {
|
||||||
$DisplayName = display_artists(array(1=>$Artists), false, false, true);
|
$DisplayName = display_artists(array(1=>$Artists), false, false, true);
|
||||||
|
foreach ($Artists as $Artist) {
|
||||||
|
$JsonArtists[] = array(
|
||||||
|
'id' => (int) $Artist['id'],
|
||||||
|
'name' => $Artist['name'],
|
||||||
|
'aliasid' => (int) $Artist['id']
|
||||||
|
);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
$DisplayName='';
|
$DisplayName='';
|
||||||
}
|
}
|
||||||
@ -511,6 +525,7 @@ function header_link($SortKey,$DefaultWay="desc") {
|
|||||||
$JsonTorrents[] = array(
|
$JsonTorrents[] = array(
|
||||||
'torrentId' => (int) $TorrentID,
|
'torrentId' => (int) $TorrentID,
|
||||||
'editionId' => (int) $EditionID,
|
'editionId' => (int) $EditionID,
|
||||||
|
'artists' => $JsonArtists,
|
||||||
'remastered' => $Data['Remastered'] == '1',
|
'remastered' => $Data['Remastered'] == '1',
|
||||||
'remasterYear' => (int) $Data['RemasterYear'],
|
'remasterYear' => (int) $Data['RemasterYear'],
|
||||||
'remasterCatalogueNumber' => $Data['RemasterCatalogueNumber'],
|
'remasterCatalogueNumber' => $Data['RemasterCatalogueNumber'],
|
||||||
|
Loading…
Reference in New Issue
Block a user