mirror of
https://github.com/WhatCD/Gazelle.git
synced 2025-01-18 20:21:37 +00:00
Empty commit
This commit is contained in:
parent
5ae500286b
commit
bc3892a474
@ -1694,10 +1694,10 @@ function display_artists($Artists, $MakeLink = true, $IncludeHyphen = true, $Esc
|
||||
$link .= display_artist($Conductors[0], $MakeLink, $Escape).$ampersand.display_artist($Conductors[1], $MakeLink, $Escape);
|
||||
break;
|
||||
default:
|
||||
$link .= 'under various conductors';
|
||||
$link .= ' various conductors';
|
||||
}
|
||||
|
||||
if ((count($Composers) > 0) && (count($MainArtists) + count($Conductors) > 3)) {
|
||||
if ((count($Composers) > 0) && (count($MainArtists) + count($Conductors) > 3) && (count($MainArtists) > 1) && (count($Conductors) > 1)) {
|
||||
$link = $ComposerStr . ' performed by Various Artists';
|
||||
}
|
||||
|
||||
@ -1786,7 +1786,7 @@ function get_groups($GroupIDs, $Return = true, $GetArtists = true) {
|
||||
|
||||
if($Return) { // If we're interested in the data, and not just caching it
|
||||
foreach($Artists as $GroupID=>$Data) {
|
||||
if(array_key_exists(1, $Data)) {
|
||||
if(array_key_exists(1, $Data) || array_key_exists(4, $Data) || array_key_exists(6, $Data)) {
|
||||
$Found[$GroupID]['Artists']=$Data[1]; // Only use main artists (legacy)
|
||||
$Found[$GroupID]['ExtendedArtists'][1]=$Data[1];
|
||||
$Found[$GroupID]['ExtendedArtists'][2]=$Data[2];
|
||||
|
@ -263,15 +263,33 @@ function compare($X, $Y){
|
||||
$DisplayName .= ' [<a href="torrents.php?action=fix_group&groupid='.$GroupID.'&artistid='.$ArtistID.'&auth='.$LoggedUser['AuthKey'].'">Fix</a>]';
|
||||
}
|
||||
|
||||
// Remixes, DJ Mixes, and Guest artists need the artist name
|
||||
if (($ReleaseType == 1023) || ($ReleaseType == 1024) || ($ReleaseType == 8)) {
|
||||
if (!empty($ExtendedArtists[1]) || !empty($ExtendedArtists[4]) || !empty($ExtendedArtists[5])) {
|
||||
unset($ExtendedArtists[2]);
|
||||
unset($ExtendedArtists[3]);
|
||||
$DisplayName = display_artists($ExtendedArtists).$DisplayName;
|
||||
} elseif(count($GroupArtists)>0) {
|
||||
$DisplayName = display_artists(array(1 => $Artists), true, true).$DisplayName;
|
||||
}
|
||||
|
||||
switch($ReleaseType){
|
||||
case 1023: // Remixes, DJ Mixes, and Guest artists need the artist name
|
||||
case 1024:
|
||||
case 8:
|
||||
if (!empty($ExtendedArtists[1]) || !empty($ExtendedArtists[4]) || !empty($ExtendedArtists[5])) {
|
||||
unset($ExtendedArtists[2]);
|
||||
unset($ExtendedArtists[3]);
|
||||
$DisplayName = display_artists($ExtendedArtists).$DisplayName;
|
||||
} elseif(count($GroupArtists)>0) {
|
||||
$DisplayName = display_artists(array(1 => $Artists), true, true).$DisplayName;
|
||||
}
|
||||
break;
|
||||
case 1022: // Show performers on composer pages
|
||||
if (!empty($ExtendedArtists[1]) || !empty($ExtendedArtists[4]) || !empty($ExtendedArtists[5])) {
|
||||
unset($ExtendedArtists[4]);
|
||||
unset($ExtendedArtists[3]);
|
||||
unset($ExtendedArtists[6]);
|
||||
$DisplayName = display_artists($ExtendedArtists).$DisplayName;
|
||||
} elseif(count($GroupArtists)>0) {
|
||||
$DisplayName = display_artists(array(1 => $Artists), true, true).$DisplayName;
|
||||
}
|
||||
break;
|
||||
default: // Show composers otherwise
|
||||
if (!empty($ExtendedArtists[4])) {
|
||||
$DisplayName = display_artists(array(4 => $ExtendedArtists[4]), true, true).$DisplayName;
|
||||
}
|
||||
}
|
||||
|
||||
if($GroupYear>0) { $DisplayName = $GroupYear. ' - '.$DisplayName; }
|
||||
|
@ -265,8 +265,12 @@ function compare($X, $Y){
|
||||
ob_start();
|
||||
|
||||
$DisplayName = '';
|
||||
if(!empty($GroupArtists)) {
|
||||
$DisplayName.= display_artists(array('1'=>$GroupArtists), false);
|
||||
if (!empty($ExtendedArtists[1]) || !empty($ExtendedArtists[4]) || !empty($ExtendedArtists[5])|| !empty($ExtendedArtists[6])) {
|
||||
unset($ExtendedArtists[2]);
|
||||
unset($ExtendedArtists[3]);
|
||||
$DisplayName .= display_artists($ExtendedArtists, false);
|
||||
} elseif(count($GroupArtists)>0) {
|
||||
$DisplayName .= display_artists(array('1'=>$GroupArtists), false);
|
||||
}
|
||||
$DisplayName .= $GroupName;
|
||||
if($GroupYear>0) { $DisplayName = $DisplayName. ' ['. $GroupYear .']';}
|
||||
|
@ -305,8 +305,12 @@ function compare($X, $Y){
|
||||
ob_start();
|
||||
|
||||
$DisplayName = '';
|
||||
if(!empty($GroupArtists)) {
|
||||
$DisplayName.= display_artists(array('1'=>$GroupArtists), false);
|
||||
if (!empty($ExtendedArtists[1]) || !empty($ExtendedArtists[4]) || !empty($ExtendedArtists[5])|| !empty($ExtendedArtists[6])) {
|
||||
unset($ExtendedArtists[2]);
|
||||
unset($ExtendedArtists[3]);
|
||||
$DisplayName .= display_artists($ExtendedArtists, false);
|
||||
} elseif(count($GroupArtists)>0) {
|
||||
$DisplayName .= display_artists(array('1'=>$GroupArtists), false);
|
||||
}
|
||||
$DisplayName .= $GroupName;
|
||||
if($GroupYear>0) { $DisplayName = $DisplayName. ' ['. $GroupYear .']';}
|
||||
|
@ -754,7 +754,7 @@
|
||||
$GuestArtistNameList = array();
|
||||
foreach($ArtistsUnescaped as $Importance => $Artists) {
|
||||
foreach($Artists as $Artist) {
|
||||
if($Importance == 1) {
|
||||
if($Importance == 1 || $Importance == 4 || $Importance == 5 || $Importance == 6) {
|
||||
$ArtistNameList[] = "Artists LIKE '%|".db_string($Artist['name'])."|%'";
|
||||
} else {
|
||||
$GuestArtistNameList[] = "Artists LIKE '%|".db_string($Artist['name'])."|%'";
|
||||
|
@ -103,7 +103,7 @@
|
||||
// $DisplayName = display_artists($Artists[$GroupID]);
|
||||
// $AltName=$GroupName;
|
||||
foreach ($TorrentList as $GroupID => $Group) {
|
||||
list($GroupID, $GroupName, $GroupYear, $GroupRecordLabel, $GroupCatalogueNumber, $TagList, $ReleaseType, $GroupVanityHouse, $Torrents, $GroupArtists) = array_values($Group);
|
||||
list($GroupID, $GroupName, $GroupYear, $GroupRecordLabel, $GroupCatalogueNumber, $TagList, $ReleaseType, $GroupVanityHouse, $Torrents, $GroupArtists, $ExtendedArtists) = array_values($Group);
|
||||
list($GroupID2, $Image, $GroupCategoryID) = array_values($CollageDataList[$GroupID]);
|
||||
|
||||
unset($DisplayName);
|
||||
@ -123,7 +123,11 @@
|
||||
$TorrentTags = implode(', ', $TorrentTags);
|
||||
$TorrentTags='<br /><div class="tags">'.$TorrentTags.'</div>';
|
||||
|
||||
if(count($GroupArtists)>0) {
|
||||
if (!empty($ExtendedArtists[1]) || !empty($ExtendedArtists[4]) || !empty($ExtendedArtists[5]) || !empty($ExtendedArtists[6])) {
|
||||
unset($ExtendedArtists[2]);
|
||||
unset($ExtendedArtists[3]);
|
||||
$DisplayName .= display_artists($ExtendedArtists);
|
||||
} elseif(count($GroupArtists)>0) {
|
||||
$DisplayName .= display_artists(array('1'=>$GroupArtists));
|
||||
}
|
||||
$DisplayName .= '<a href="torrents.php?id='.$GroupID.'" title="View Torrent">'.$GroupName.'</a>';
|
||||
|
Loading…
Reference in New Issue
Block a user