summaryrefslogtreecommitdiffstats
path: root/module/plugins/crypter
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-11-15 01:59:37 +0100
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-11-15 01:59:37 +0100
commit5f150f8c284178ba55cce3ecdf347131cc61ad1a (patch)
tree4d1fad6ceb380f6089516115e2d8c6ad61a6fce6 /module/plugins/crypter
parent[Plugin] Fix wait routine 2 (diff)
downloadpyload-5f150f8c284178ba55cce3ecdf347131cc61ad1a.tar.xz
[LinkCryptWs] Fix typo
Diffstat (limited to 'module/plugins/crypter')
-rw-r--r--module/plugins/crypter/LinkCryptWs.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/module/plugins/crypter/LinkCryptWs.py b/module/plugins/crypter/LinkCryptWs.py
index 67b1a3f02..b90e18490 100644
--- a/module/plugins/crypter/LinkCryptWs.py
+++ b/module/plugins/crypter/LinkCryptWs.py
@@ -15,7 +15,7 @@ from module.utils import html_unescape
class LinkCryptWs(Crypter):
__name__ = "LinkCryptWs"
__type__ = "crypter"
- __version__ = "0.04"
+ __version__ = "0.05"
__pattern__ = r'http://(?:www\.)?linkcrypt\.ws/(dir|container)/(?P<ID>\w+)'
@@ -38,7 +38,7 @@ class LinkCryptWs(Crypter):
self.preferred_sources = ['cnl', 'web', 'dlc', 'rsdf', 'ccf', ] #['cnl', 'rsdf', 'ccf', 'dlc', 'web']
- def prepare():
+ def prepare(self):
# Init
self.package = pyfile.package()
self.fileid = re.match(self.__pattern__, pyfile.url).group('ID')
@@ -46,7 +46,7 @@ class LinkCryptWs(Crypter):
self.req.cj.setCookie(".linkcrypt.ws", "language", "en")
# Request package
- self.req.http.c.setopt(pycurl.USERAGENT, "Mozilla/5.0 (Windows NT 6.3; WOW64; Trident/7.0; rv:11.0) like Gecko") #better chance to not get those key-captchas
+ self.req.http.c.setopt(pycurl.USERAGENT, "Mozilla/5.0 (Windows NT 6.3; WOW64; Trident/7.0; rv:11.0) like Gecko") #: better chance to not get those key-captchas
self.html = self.load(self.pyfile.url)
@@ -96,8 +96,6 @@ class LinkCryptWs(Crypter):
package_found = True
break
- package_links = set(package_links)
-
# Pack
if package_links:
self.packages = [(package_name, package_links, folder_name)]