summaryrefslogtreecommitdiffstats
path: root/pyload/plugin/crypter/MultiloadCz.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-04-13 08:21:50 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-04-13 08:21:50 +0200
commit486adc1874e463b1563ad2394b216faff388b10d (patch)
tree58009056cb67e35930d49a9dd6af45adf6a8d434 /pyload/plugin/crypter/MultiloadCz.py
parentFix https://github.com/pyload/pyload/issues/1349 (diff)
downloadpyload-486adc1874e463b1563ad2394b216faff388b10d.tar.xz
Prepare plugins to merging from stable
Diffstat (limited to 'pyload/plugin/crypter/MultiloadCz.py')
-rw-r--r--pyload/plugin/crypter/MultiloadCz.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/pyload/plugin/crypter/MultiloadCz.py b/pyload/plugin/crypter/MultiloadCz.py
index be9d62cd0..0bcf94016 100644
--- a/pyload/plugin/crypter/MultiloadCz.py
+++ b/pyload/plugin/crypter/MultiloadCz.py
@@ -5,19 +5,19 @@ from pyload.plugin.Crypter import Crypter
class MultiloadCz(Crypter):
- __name = "MultiloadCz"
- __type = "crypter"
- __version = "0.40"
+ __name__ = "MultiloadCz"
+ __type__ = "crypter"
+ __version__ = "0.40"
- __pattern = r'http://(?:[^/]*\.)?multiload\.cz/(stahnout|slozka)/.+'
- __config = [("use_subfolder" , "bool", "Save package to subfolder" , True),
+ __pattern__ = r'http://(?:[^/]*\.)?multiload\.cz/(stahnout|slozka)/.+'
+ __config__ = [("use_subfolder" , "bool", "Save package to subfolder" , True),
("subfolder_per_pack", "bool", "Create a subfolder for each package" , True),
("usedHoster" , "str" , "Prefered hoster list (bar-separated)", "" ),
("ignoredHoster" , "str" , "Ignored hoster list (bar-separated)" , "" )]
- __description = """Multiload.cz decrypter plugin"""
- __license = "GPLv3"
- __authors = [("zoidberg", "zoidberg@mujmail.cz")]
+ __description__ = """Multiload.cz decrypter plugin"""
+ __license__ = "GPLv3"
+ __authors__ = [("zoidberg", "zoidberg@mujmail.cz")]
FOLDER_PATTERN = r'<form action="" method="get"><textarea[^>]*>([^>]*)</textarea></form>'
@@ -27,7 +27,7 @@ class MultiloadCz(Crypter):
def decrypt(self, pyfile):
self.html = self.load(pyfile.url, decode=True)
- if re.match(self.__pattern, pyfile.url).group(1) == "slozka":
+ if re.match(self.__pattern__, pyfile.url).group(1) == "slozka":
m = re.search(self.FOLDER_PATTERN, self.html)
if m:
self.urls.extend(m.group(1).split())