mirror of
https://github.com/rembo10/headphones.git
synced 2026-05-19 10:05:30 +01:00
RIP WCD
This commit is contained in:
@@ -80,7 +80,7 @@ def addTorrent(link, data=None, name=None):
|
||||
|
||||
result = {}
|
||||
retid = False
|
||||
url_what = ['https://what.cd/', 'http://what.cd/']
|
||||
url_apollo = ['https://apollo.rip/', 'http://apollo.rip/']
|
||||
url_waffles = ['https://waffles.ch/', 'http://waffles.ch/']
|
||||
|
||||
if link.lower().startswith('magnet:'):
|
||||
@@ -94,7 +94,7 @@ def addTorrent(link, data=None, name=None):
|
||||
if link.lower().startswith(tuple(url_waffles)):
|
||||
if 'rss=' not in link:
|
||||
link = link + '&rss=1'
|
||||
if link.lower().startswith(tuple(url_what)):
|
||||
if link.lower().startswith(tuple(url_apollo)):
|
||||
logger.debug('Deluge: Using different User-Agent for this site')
|
||||
user_agent = 'Headphones'
|
||||
# This method will make Deluge download the file
|
||||
|
||||
Reference in New Issue
Block a user