if(!empty($_GET['userid']) && is_number($_GET['userid'])) { if (check_perms('users_override_paranoia')) { $UserID = $_GET['userid']; } else { error(403); } } else { $UserID = $LoggedUser['ID']; } // Get list of FLAC snatches $DB->query("SELECT t.GroupID, xs.fid FROM xbt_snatched AS xs JOIN torrents AS t ON t.ID=xs.fid WHERE t.Format='FLAC' AND ((t.LogScore = '100' AND t.Media = 'CD') OR t.Media = 'Vinyl') AND xs.uid='$UserID'"); $SnatchedGroupIDs = $DB->collect('GroupID'); $Snatches = $DB->to_array('GroupID'); if(count($SnatchedGroupIDs) == 0) { error('You haven\'t snatched any 100% flacs!'); } // Create hash table $DB->query("CREATE TEMPORARY TABLE t SELECT t.GroupID, GROUP_CONCAT(t.Encoding SEPARATOR ' ') AS EncodingList FROM torrents AS t WHERE t.GroupID IN(".implode(',',$SnatchedGroupIDs).") GROUP BY t.GroupID"); //$DB->query('SELECT * FROM t'); $DB->query("SELECT GroupID FROM t WHERE EncodingList NOT LIKE '%V0 (VBR)%' OR EncodingList NOT LIKE '%V2 (VBR)%' OR EncodingList NOT LIKE '%320%'"); $GroupIDs = $DB->collect('GroupID'); if(count($GroupIDs) == 0) { error('No results found'); } $Results = get_groups($GroupIDs); show_header('Transcode Snatches'); ?>
Torrent | V2 | V0 | 320 |
=$DisplayName?> [DL] | =($MissingEncodings['V2 (VBR)'] == 0)?'YES':'NO'?> | =($MissingEncodings['V0 (VBR)'] == 0)?'YES':'NO'?> | =($MissingEncodings['320'] == 0)?'YES':'NO'?> |