mirror of
https://github.com/rembo10/headphones.git
synced 2026-07-22 08:53:59 +01:00
@@ -34,7 +34,7 @@ _session_id = None
|
|||||||
def addTorrent(link, data=None):
|
def addTorrent(link, data=None):
|
||||||
method = 'torrent-add'
|
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:
|
if data:
|
||||||
metainfo = str(base64.b64encode(data))
|
metainfo = str(base64.b64encode(data))
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user