From cfd9d99235368884c585fc3dcea303eef22abdfe Mon Sep 17 00:00:00 2001 From: rembo10 Date: Wed, 31 Jul 2013 21:53:43 +0530 Subject: [PATCH] Added a little log message when searching TPB with the Blackhole option set --- headphones/searcher.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/headphones/searcher.py b/headphones/searcher.py index 75acf712..b5993ddd 100644 --- a/headphones/searcher.py +++ b/headphones/searcher.py @@ -1073,6 +1073,8 @@ def searchTorrent(albumid=None, new=False, losslessOnly=False): provider)) # Pirate Bay + if headphones.PIRATEBAY and headphones.TORRENT_DOWNLOADER == 0: + logger.warn("Cannot search Pirate Bay with Blackhole option set") if headphones.PIRATEBAY and headphones.TORRENT_DOWNLOADER != 0: provider = "The Pirate Bay" providerurl = url_fix("http://thepiratebay.sx/search/" + term + "/0/99/")