Fixed Whitespace Again

- Oh Travis...
This commit is contained in:
Noam
2016-02-04 16:17:27 +02:00
parent ca36938a83
commit b5a9d52592

View File

@@ -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