summaryrefslogtreecommitdiffstats
path: root/pyload/plugin/crypter/SafelinkingNet.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-03-26 12:44:15 +0100
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-03-26 12:44:15 +0100
commitce103ce1e60661f7bcdf6a033335134de61d48b1 (patch)
tree29b9421062cc8341dc10b6ca65e9a64802c3db71 /pyload/plugin/crypter/SafelinkingNet.py
parent.min.css -> .css (diff)
downloadpyload-ce103ce1e60661f7bcdf6a033335134de61d48b1.tar.xz
Prepare to merging
Diffstat (limited to 'pyload/plugin/crypter/SafelinkingNet.py')
-rw-r--r--pyload/plugin/crypter/SafelinkingNet.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/pyload/plugin/crypter/SafelinkingNet.py b/pyload/plugin/crypter/SafelinkingNet.py
index ed2d76e85..2d5d273ed 100644
--- a/pyload/plugin/crypter/SafelinkingNet.py
+++ b/pyload/plugin/crypter/SafelinkingNet.py
@@ -10,17 +10,17 @@ from pyload.plugin.internal.captcha import SolveMedia
class SafelinkingNet(Crypter):
- __name = "SafelinkingNet"
- __type = "crypter"
- __version = "0.14"
+ __name__ = "SafelinkingNet"
+ __type__ = "crypter"
+ __version__ = "0.14"
- __pattern = r'https?://(?:www\.)?safelinking\.net/([pd])/\w+'
- __config = [("use_subfolder", "bool", "Save package to subfolder", True),
+ __pattern__ = r'https?://(?:www\.)?safelinking\.net/([pd])/\w+'
+ __config__ = [("use_subfolder", "bool", "Save package to subfolder", True),
("subfolder_per_package", "bool", "Create a subfolder for each package", True)]
- __description = """Safelinking.net decrypter plugin"""
- __license = "GPLv3"
- __authors = [("quareevo", "quareevo@arcor.de")]
+ __description__ = """Safelinking.net decrypter plugin"""
+ __license__ = "GPLv3"
+ __authors__ = [("quareevo", "quareevo@arcor.de")]
SOLVEMEDIA_PATTERN = "solvemediaApiKey = '([\w.-]+)';"
@@ -29,7 +29,7 @@ class SafelinkingNet(Crypter):
def decrypt(self, pyfile):
url = pyfile.url
- if re.match(self.__pattern, url).group(1) == "d":
+ if re.match(self.__pattern__, url).group(1) == "d":
header = self.load(url, just_header=True)
if 'location' in header: