summaryrefslogtreecommitdiffstats
path: root/module/plugins/crypter
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-10-18 17:25:53 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-10-18 17:25:53 +0200
commitad17f97c76a9aba7497fde9ad3f09ebc2088a6b9 (patch)
treee05fa50647d28c0d04bca13b29dada7b38eec4d8 /module/plugins/crypter
parent[ExternalScripts] Optimize code (diff)
downloadpyload-ad17f97c76a9aba7497fde9ad3f09ebc2088a6b9.tar.xz
Set broken plugins
Diffstat (limited to 'module/plugins/crypter')
-rw-r--r--module/plugins/crypter/MegaCoNzFolder.py9
-rw-r--r--module/plugins/crypter/TurbobitNetFolder.py8
2 files changed, 10 insertions, 7 deletions
diff --git a/module/plugins/crypter/MegaCoNzFolder.py b/module/plugins/crypter/MegaCoNzFolder.py
index abdecff30..7e8058d18 100644
--- a/module/plugins/crypter/MegaCoNzFolder.py
+++ b/module/plugins/crypter/MegaCoNzFolder.py
@@ -2,17 +2,17 @@
import re
-from module.plugins.internal.Crypter import Crypter
+from module.plugins.internal.Crypter import Crypter, create_getInfo
class MegaCoNzFolder(Crypter):
__name__ = "MegaCoNz"
__type__ = "crypter"
__version__ = "0.06"
- __status__ = "testing"
+ __status__ = "broken"
__pattern__ = r'(https?://(?:www\.)?mega(\.co)?\.nz/|mega:|chrome:.+?)#F!(?P<ID>[\w^_]+)!(?P<KEY>[\w,\\-]+)'
- __config__ = [("activated", "bool", "Activated", True),
+ __config__ = [("activated" , "bool", "Activated" , True),
("use_subfolder" , "bool", "Save package to subfolder" , True),
("subfolder_per_pack", "bool", "Create a subfolder for each package", True)]
@@ -29,3 +29,6 @@ class MegaCoNzFolder(Crypter):
url = "https://mega.co.nz/#F!%s!%s" % re.match(self.__pattern__, pyfile.url).groups()
self.html = self.load("http://rapidgen.org/linkfinder", post={'linklisturl': url})
self.urls = re.findall(r'(https://mega(\.co)?\.nz/#N!.+?)<', self.html)
+
+
+getInfo = create_getInfo(MegaCoNzFolder)
diff --git a/module/plugins/crypter/TurbobitNetFolder.py b/module/plugins/crypter/TurbobitNetFolder.py
index ac18a7399..b90eb5aa3 100644
--- a/module/plugins/crypter/TurbobitNetFolder.py
+++ b/module/plugins/crypter/TurbobitNetFolder.py
@@ -3,17 +3,17 @@
import re
from module.plugins.internal.SimpleCrypter import SimpleCrypter, create_getInfo
-from module.common.json_layer import json_loads
+from module.plugins.internal.utils import json
class TurbobitNetFolder(SimpleCrypter):
__name__ = "TurbobitNet"
__type__ = "crypter"
__version__ = "0.06"
- __status__ = "testing"
+ __status__ = "broken"
__pattern__ = r'http://(?:www\.)?turbobit\.net/download/folder/(?P<ID>\w+)'
- __config__ = [("activated", "bool", "Activated", True),
+ __config__ = [("activated" , "bool", "Activated" , True),
("use_premium" , "bool", "Use premium account if available" , True),
("use_subfolder" , "bool", "Save package to subfolder" , True),
("subfolder_per_pack", "bool", "Create a subfolder for each package", True)]
@@ -30,7 +30,7 @@ class TurbobitNetFolder(SimpleCrypter):
def _get_links(self, id, page=1):
gridFile = self.load("http://turbobit.net/downloadfolder/gridFile",
get={'rootId': id, 'rows': 200, 'page': page})
- grid = json_loads(gridFile)
+ grid = json.loads(gridFile)
if grid['rows']:
for i in grid['rows']: