Skip to content

Instantly share code, notes, and snippets.

@mhertz
mhertz / magnet2torrent.py
Created July 20, 2018 22:27
Fixes an issue with magnets without fallback trackers + loads directly into standard client defined for torrent files(xdg-open).
#!/usr/bin/env python
'''
Created on Apr 19, 2012
@author: dan, Faless
GNU GENERAL PUBLIC LICENSE - Version 3
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
@mhertz
mhertz / magnet2torrent.py
Created July 20, 2018 22:29
Fixes an issue with magnets without fallback trackers.
#!/usr/bin/env python
'''
Created on Apr 19, 2012
@author: dan, Faless
GNU GENERAL PUBLIC LICENSE - Version 3
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
@mhertz
mhertz / core.patch
Last active July 22, 2018 19:55
LabelPlus v0.3.2.2 fixed to work with magnets too.
--- a/deluge-labelplus/labelplus/core/core.py 2018-07-22 21:52:18.126482042 +0200
+++ b/deluge-labelplus/labelplus/core/core.py 2018-07-22 21:53:29.439466952 +0200
@@ -39,6 +39,7 @@
import datetime
import logging
import os
+from time import sleep
import twisted.internet
@mhertz
mhertz / core.patch
Created July 28, 2018 00:44
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,