Disabled a bunch of stuff that was being parsed and not needed by headphones, got down to 27 secs

This commit is contained in:
Aaron Cohen
2012-09-13 02:07:50 -07:00
parent 0970689df9
commit 5291b2f326
2 changed files with 191 additions and 1611 deletions

View File

@@ -849,7 +849,7 @@ def searchTorrent(albumid=None, new=False, losslessOnly=False):
all_children = []
for group in release_torrent_groups:
all_children += group.torrentinfo['torrent']['childrenids']
all_children += group.getTorrentChildren()
# cap at 10 matches, 1 per second to reduce hits on API...don't wanna get in trouble.
# Might want to turn up number of matches later.
# max_torrent_info_reads = 10
@@ -871,7 +871,8 @@ def searchTorrent(albumid=None, new=False, losslessOnly=False):
if not len(match_torrents):
logger.info(u"No results found from %s for %s after filtering" % (provider, term))
elif len(match_torrents) > 1:
logger.info(u"Found %d matching releases from %s for %s after filtering" % (len(match_torrents), provider, artistterm))
logger.info(u"Found %d matching releases from %s for %s - %s after filtering" %
(len(match_torrents), provider, artistterm, albumterm))
match_torrents.sort(key=lambda x: x.getTorrentSeeders)
for torrent in match_torrents:

File diff suppressed because it is too large Load Diff