darc.proxy.magnet.save_magnet(link)[source]

Save magnet link.

The function will save magnet link to the file as defined in PATH.

Parameters

link (Link) – Link object representing the magnet link

Return type

None

darc.proxy.magnet.PATH = '{PATH_MISC}/magnet.txt'

Path to the data storage of magnet links.

darc.proxy.magnet.LOCK: Union[multiprocessing.Lock, threading.Lock, contextlib.nullcontext]

I/O lock for saving magnet links PATH.