mirror of
https://github.com/rembo10/headphones.git
synced 2026-03-21 20:29:27 +00:00
torznab to transmission fix
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user