Skip to content

Instantly share code, notes, and snippets.

@mhertz

mhertz/core.patch

Created Jul 28, 2018
Embed
What would you like to do?
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