I want to create torrents, based on daemon that checks the folder for updates and creates new torrents when new *.mp4 file is added in the folder. Here is my snippet of code, daemon works correctly, it's the torrent part that doesn't work. I'm using Torf Library to create torrents, and transmission-rpc to interface with running transmission-daemon:
def on_created(self, event):
name = Path(event.src_path).stem
torrent = Torrent(event.src_path, name)
torrent.generate()
self.transmission_client.add_torrent(str(torrent.magnet()), download_dir="/home/neverovskii/torrent_dir")
Download directory is the same, in which .mp4 files are. Torrent adds without problems, but it can't check that the data is here and can't start seeding. Transmission Web shows this: it correctly identifies file name, file size and pieces and gets info_hash, but doesn't work properly. What have I done wrong?