2011-04-13 15:36:33 +00:00
|
|
|
<?
|
2013-04-19 08:00:55 +00:00
|
|
|
if (($GroupIDs = $Cache->get_value('better_single_groupids')) === false) {
|
2013-06-18 08:00:48 +00:00
|
|
|
$DB->query("
|
|
|
|
SELECT
|
|
|
|
t.ID AS TorrentID,
|
|
|
|
t.GroupID AS GroupID
|
|
|
|
FROM xbt_files_users AS x
|
|
|
|
JOIN torrents AS t ON t.ID=x.fid
|
|
|
|
WHERE t.Format='FLAC'
|
|
|
|
GROUP BY x.fid
|
|
|
|
HAVING COUNT(x.uid) = 1
|
|
|
|
ORDER BY t.LogScore DESC, t.Time ASC
|
|
|
|
LIMIT 30");
|
2011-04-13 15:36:33 +00:00
|
|
|
|
|
|
|
$GroupIDs = $DB->to_array('GroupID');
|
2013-06-18 08:00:48 +00:00
|
|
|
$Cache->cache_value('better_single_groupids', $GroupIDs, 30 * 60);
|
2011-04-13 15:36:33 +00:00
|
|
|
}
|
|
|
|
|
2012-10-11 08:00:15 +00:00
|
|
|
$Results = Torrents::get_groups(array_keys($GroupIDs));
|
2011-04-13 15:36:33 +00:00
|
|
|
|
2012-10-11 08:00:15 +00:00
|
|
|
View::show_header('Single seeder FLACs');
|
2011-04-13 15:36:33 +00:00
|
|
|
?>
|
2013-02-23 08:00:22 +00:00
|
|
|
<div class="linkbox">
|
|
|
|
<a href="better.php" class="brackets">Back to better.php list</a>
|
|
|
|
</div>
|
2011-04-13 15:36:33 +00:00
|
|
|
<div class="thin">
|
2012-09-01 08:00:24 +00:00
|
|
|
<table width="100%" class="torrent_table">
|
2011-04-13 15:36:33 +00:00
|
|
|
<tr class="colhead">
|
|
|
|
<td>Torrent</td>
|
|
|
|
</tr>
|
|
|
|
<?
|
|
|
|
$Results = $Results['matches'];
|
2013-02-25 21:16:55 +00:00
|
|
|
foreach ($Results as $GroupID => $Group) {
|
|
|
|
extract(Torrents::array_group($Group));
|
|
|
|
$TorrentTags = new Tags($TagList);
|
|
|
|
|
2012-12-06 08:00:17 +00:00
|
|
|
if (!empty($ExtendedArtists[1]) || !empty($ExtendedArtists[4]) || !empty($ExtendedArtists[5]) || !empty($ExtendedArtists[6])) {
|
|
|
|
unset($ExtendedArtists[2]);
|
|
|
|
unset($ExtendedArtists[3]);
|
|
|
|
$DisplayName = Artists::display_artists($ExtendedArtists);
|
|
|
|
} else {
|
|
|
|
$DisplayName = '';
|
2011-04-13 15:36:33 +00:00
|
|
|
}
|
2012-12-06 08:00:17 +00:00
|
|
|
$FlacID = $GroupIDs[$GroupID]['TorrentID'];
|
|
|
|
|
2013-06-18 08:00:48 +00:00
|
|
|
$DisplayName .= '<a href="torrents.php?id='.$GroupID.'&torrentid='.$FlacID.'" title="View Torrent">'.$GroupName.'</a>';
|
2013-04-19 08:00:55 +00:00
|
|
|
if ($GroupYear > 0) {
|
2013-06-18 08:00:48 +00:00
|
|
|
$DisplayName .= " [$GroupYear]";
|
2013-04-19 08:00:55 +00:00
|
|
|
}
|
|
|
|
if ($ReleaseType > 0) {
|
2013-06-18 08:00:48 +00:00
|
|
|
$DisplayName .= " [".$ReleaseTypes[$ReleaseType]."]";
|
2013-04-19 08:00:55 +00:00
|
|
|
}
|
2013-02-13 08:00:35 +00:00
|
|
|
|
2012-12-06 08:00:17 +00:00
|
|
|
$ExtraInfo = Torrents::torrent_info($Torrents[$FlacID]);
|
2013-04-19 08:00:55 +00:00
|
|
|
if ($ExtraInfo) {
|
2013-06-18 08:00:48 +00:00
|
|
|
$DisplayName .= ' - '.$ExtraInfo;
|
2012-12-06 08:00:17 +00:00
|
|
|
}
|
2011-04-13 15:36:33 +00:00
|
|
|
?>
|
2013-02-13 08:00:35 +00:00
|
|
|
<tr class="torrent torrent_row<?=$Torrents[$FlacID]['IsSnatched'] ? ' snatched_torrent' : ''?>">
|
2011-04-13 15:36:33 +00:00
|
|
|
<td>
|
2012-12-06 08:00:17 +00:00
|
|
|
<span class="torrent_links_block">
|
2013-02-13 08:00:35 +00:00
|
|
|
<a href="torrents.php?action=download&id=<?=$FlacID?>&authkey=<?=$LoggedUser['AuthKey']?>&torrent_pass=<?=$LoggedUser['torrent_pass']?>" class="brackets">DL</a>
|
2012-12-06 08:00:17 +00:00
|
|
|
</span>
|
|
|
|
<?=$DisplayName?>
|
2013-02-25 21:16:55 +00:00
|
|
|
<div class="tags"><?=$TorrentTags->format()?></div>
|
2011-04-13 15:36:33 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<? } ?>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
<?
|
2012-10-11 08:00:15 +00:00
|
|
|
View::show_footer();
|
2011-04-13 15:36:33 +00:00
|
|
|
?>
|