Skip to content

Instantly share code, notes, and snippets.

@mhertz
Created July 28, 2018 00:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mhertz/f30eedaaab36b91fd5f404a815633b16 to your computer and use it in GitHub Desktop.
Save mhertz/f30eedaaab36b91fd5f404a815633b16 to your computer and use it in GitHub Desktop.
NoFolder v0.2 fixed to work with magnets too.
--- a/nofolder/nofolder/core.py 2018-07-28 02:25:57.360794842 +0200
+++ b/nofolder/nofolder/core.py 2018-07-28 02:27:42.743746681 +0200
@@ -44,6 +44,7 @@
from deluge.core.rpcserver import export
import os
import re
+from time import sleep
DEFAULT_PREFS = {
"dontaddfolder": False,
@@ -69,6 +70,7 @@
if not (self.config['dontaddfolder'] or self.config['createfolder']):
return
torrent = self.torrents[torrent_id]
+ sleep(2)
torrent.pause()
status_keys = ["files", "save_path", "name"]
status = torrent.get_status(status_keys)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment