diff --git a/headphones/searcher.py b/headphones/searcher.py index 8ff637f7..a498d619 100644 --- a/headphones/searcher.py +++ b/headphones/searcher.py @@ -863,10 +863,6 @@ def send_to_downloader(data, bestqual, album): logger.error('Torrent id could not be determined') return - # Set Label - if headphones.CONFIG.UTORRENT_LABEL: - utorrent.labelTorrent(torrentid) - # Get folder folder_name = utorrent.getFolder(torrentid) if folder_name: @@ -875,6 +871,10 @@ def send_to_downloader(data, bestqual, album): logger.error('Torrent folder name could not be determined') return + # Set Label + if headphones.CONFIG.UTORRENT_LABEL: + utorrent.labelTorrent(torrentid) + # Set Seed Ratio seed_ratio = get_seed_ratio(bestqual[3]) if seed_ratio is not None: @@ -1552,7 +1552,8 @@ def preprocess(resultlist): headers = {} if result[3] == 'Kick Ass Torrents': - headers['Referer'] = 'http://kat.ph/' + #headers['Referer'] = 'http://kat.ph/' + headers['User-Agent'] = USER_AGENT elif result[3] == 'What.cd': headers['User-Agent'] = 'Headphones' elif result[3] == "The Pirate Bay" or result[3] == "Old Pirate Bay":