From 0525493c993930def0befdb13a77f39615f73d00 Mon Sep 17 00:00:00 2001 From: Noam Date: Sun, 5 Jun 2016 14:39:19 +0300 Subject: [PATCH] Waffles move from .fm to .ch --- data/interfaces/default/config.html | 2 +- headphones/deluge.py | 2 +- headphones/searcher.py | 10 +++++----- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/data/interfaces/default/config.html b/data/interfaces/default/config.html index ffd6e68d..a22a0ea7 100644 --- a/data/interfaces/default/config.html +++ b/data/interfaces/default/config.html @@ -593,7 +593,7 @@
- +
diff --git a/headphones/deluge.py b/headphones/deluge.py index 6809dd45..f97063d3 100644 --- a/headphones/deluge.py +++ b/headphones/deluge.py @@ -81,7 +81,7 @@ def addTorrent(link, data=None, name=None): result = {} retid = False url_what = ['https://what.cd/', 'http://what.cd/'] - url_waffles = ['https://waffles.fm/', 'http://waffles.fm/'] + url_waffles = ['https://waffles.ch/', 'http://waffles.ch/'] if link.lower().startswith('magnet:'): logger.debug('Deluge: Got a magnet link: %s' % _scrubber(link)) diff --git a/headphones/searcher.py b/headphones/searcher.py index 6f71db52..dd1547db 100644 --- a/headphones/searcher.py +++ b/headphones/searcher.py @@ -165,7 +165,7 @@ def get_seed_ratio(provider): seed_ratio = headphones.CONFIG.PIRATEBAY_RATIO elif provider == 'Old Pirate Bay': seed_ratio = headphones.CONFIG.OLDPIRATEBAY_RATIO - elif provider == 'Waffles.fm': + elif provider == 'Waffles.ch': seed_ratio = headphones.CONFIG.WAFFLES_RATIO elif provider == 'Mininova': seed_ratio = headphones.CONFIG.MININOVA_RATIO @@ -1332,8 +1332,8 @@ def searchTorrent(album, new=False, losslessOnly=False, albumlength=None, logger.exception("Unhandled exception in the KAT parser") if headphones.CONFIG.WAFFLES: - provider = "Waffles.fm" - providerurl = fix_url("https://www.waffles.fm/browse.php") + provider = "Waffles.ch" + providerurl = fix_url("https://www.waffles.ch/browse.php") bitrate = None if headphones.CONFIG.PREFERRED_QUALITY == 3 or losslessOnly: @@ -1362,7 +1362,7 @@ def searchTorrent(album, new=False, losslessOnly=False, albumlength=None, query_items.append('bitrate:"%s"' % bitrate) # Requesting content - logger.info('Parsing results from Waffles.fm') + logger.info('Parsing results from Waffles.ch') params = { "uid": headphones.CONFIG.WAFFLES_UID, @@ -1395,7 +1395,7 @@ def searchTorrent(album, new=False, losslessOnly=False, albumlength=None, logger.info('Found %s. Size: %s', title, helpers.bytes_to_mb(size)) except Exception as e: logger.error( - u"An error occurred while trying to parse the response from Waffles.fm: %s", + u"An error occurred while trying to parse the response from Waffles.ch: %s", e) # rutracker.org