Transmission magnet issue

Fixes #2972
This commit is contained in:
Ade
2017-06-24 09:27:51 +12:00
parent ee7254ddbe
commit e96a6fc7c8

View File

@@ -34,7 +34,7 @@ _session_id = None
def addTorrent(link, data=None):
method = 'torrent-add'
if link.endswith('.torrent') and not link.startswith('http') or data:
if link.endswith('.torrent') and not link.startswith(('http', 'magnet')) or data:
if data:
metainfo = str(base64.b64encode(data))
else: