Merge branch 'develop' of github.com:RuudBurger/CouchPotatoServer into develop

This commit is contained in:
Ruud committed 2013-11-09 23:42:15 +01:00
commit ddba0e318f
1 file changed
+2 -1
@@ -210,7 +210,8 @@ class rTorrent(Downloader):
if torrent is None: if torrent is None:
return False return False
for file_item in torrent.get_files(): if delete_files:
for file_item in torrent.get_files(): # will only delete files, not dir/sub-dir
os.unlink(os.path.join(torrent.directory, file_item.path)) os.unlink(os.path.join(torrent.directory, file_item.path))
torrent.erase() # just removes the torrent, doesn't delete data torrent.erase() # just removes the torrent, doesn't delete data