JohnDoee / autotorrent

Matches torrents with files and gets them seeded
MIT License
269 stars 34 forks source link

The folder exist, but is not seeded by torrentclient #32

Open WantedFreak opened 5 years ago

WantedFreak commented 5 years ago

Hi, Is there a way to force add torrents even if's already been added? For example, if I add a torrent and remove it from the client without selecting remove + data I can no longer add it again. If there were a few torrents I could remove the links manually but in the case of 100's it would take hours.

oldsweatyman commented 4 years ago

I worked around this message by changing the "store_path" directory. It shouldn't be a big deal to just have a second directory because they're just soft links?

oldsweatyman commented 4 years ago

on further testing just to clarify/add to the discussion, it says "the folder exists" because it is in the folder where autotorrent creates soft/hardlinks (store_path directory).

so, it seems that if you delete these hard/soft links in that store_path folder (or change the directory as in my previous comment), the client will add the torrent again because it will not know that it has already been added.

adamwinn commented 3 years ago

I'm seeing this exact same scenario

Ya I dont see why it wont just add the torrent into the client. If the folder already exists, that just means step 1 is already done. Just add it and start seeding

adamwinn commented 3 years ago

I just commented out this code in at.py and it works great now. Around line 451 at the time of this writing.

 if os.path.isdir(destination_path):
     logger.info('Folder exist but torrent is not seeded %s' % destination_path)
     self.print_status(Status.FOLDER_EXIST_NOT_SEEDING, path, 'The folder exist, but is not seeded by torrentclient')
      return Status.FOLDER_EXIST_NOT_SEEDING

self.link_files(destination_path, files['files'])