mirror of
https://github.com/rembo10/headphones.git
synced 2026-05-16 00:25:31 +01:00
Waffles move from .fm to .ch
This commit is contained in:
@@ -593,7 +593,7 @@
|
||||
|
||||
<fieldset>
|
||||
<div class="row checkbox left">
|
||||
<input id="use_waffles" type="checkbox" class="bigcheck" name="use_waffles" value="1" ${config['use_waffles']} /><label for="use_waffles"><span class="option">Waffles.fm</span></label>
|
||||
<input id="use_waffles" type="checkbox" class="bigcheck" name="use_waffles" value="1" ${config['use_waffles']} /><label for="use_waffles"><span class="option">Waffles.ch</span></label>
|
||||
</div>
|
||||
<div class="config">
|
||||
<div class="row">
|
||||
|
||||
@@ -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))
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user