Created
July 28, 2018 00:44
-
-
Save mhertz/f30eedaaab36b91fd5f404a815633b16 to your computer and use it in GitHub Desktop.
NoFolder v0.2 fixed to work with magnets too.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- 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