mirror of
https://github.com/rembo10/headphones.git
synced 2026-05-07 04:09:32 +01:00
Fixed Whitespace Again
- Oh Travis...
This commit is contained in:
@@ -71,16 +71,13 @@ def addTorrent(link, data=None):
|
||||
if name[-len('.torrent'):] == '.torrent':
|
||||
name = name[:-len('.torrent')]
|
||||
result = {'type': 'torrent',
|
||||
'name' : name,
|
||||
'content' : metainfo,
|
||||
}
|
||||
'name': name,
|
||||
'content': metainfo}
|
||||
retid = _add_torrent_file(result)
|
||||
|
||||
elif link.startswith('magnet:'):
|
||||
result = {
|
||||
'type' : 'magnet',
|
||||
'url' : link,
|
||||
}
|
||||
result = {'type': 'magnet',
|
||||
'url': link}
|
||||
retid = _add_torrent_uri(result)
|
||||
else:
|
||||
logger.error('Deluge: Unknown file type - ' + str(link))
|
||||
@@ -368,4 +365,4 @@ def addTorrentPause(result):
|
||||
|
||||
return not json.loads(response.text)['error']
|
||||
|
||||
return True
|
||||
return True
|
||||
|
||||
Reference in New Issue
Block a user