From 9519bfddd40d5f4869cc26c50df3b6ff63ddda0d Mon Sep 17 00:00:00 2001 From: Ade Date: Tue, 6 Oct 2015 19:32:55 +1300 Subject: [PATCH] torznab to transmission fix --- headphones/transmission.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/headphones/transmission.py b/headphones/transmission.py index 990360d0..ab5ae6c9 100644 --- a/headphones/transmission.py +++ b/headphones/transmission.py @@ -31,7 +31,7 @@ import headphones def addTorrent(link, data=None): method = 'torrent-add' - if link.endswith('.torrent') or data: + if link.endswith('.torrent') and not link.startswith('http') or data: if data: metainfo = str(base64.b64encode(data)) else: