From b5a9d525920afb75ee1abaa98487b3d0985d3328 Mon Sep 17 00:00:00 2001 From: Noam Date: Thu, 4 Feb 2016 16:17:27 +0200 Subject: [PATCH] Fixed Whitespace Again - Oh Travis... --- headphones/deluge.py | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/headphones/deluge.py b/headphones/deluge.py index fec96781..d960d73f 100644 --- a/headphones/deluge.py +++ b/headphones/deluge.py @@ -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 \ No newline at end of file + return True