mirror of
https://github.com/house-of-vanity/gaspar.git
synced 2025-07-06 18:24:07 +00:00
9 lines
164 B
Python
9 lines
164 B
Python
from transmission_rpc import Client
|
|
|
|
def add_tor(tor_hash):
|
|
c = Client(host='msk.hexor.ru', port=80)
|
|
m = f'magnet:?xt=urn:btih:{tor_hash}'
|
|
c.add_torrent(m)
|
|
|
|
|