summaryrefslogtreecommitdiffstats
path: root/module/plugins/crypter/UploadedToFolder.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-12-22 16:45:04 +0100
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-12-22 16:45:04 +0100
commit854efeb463bd98cb8e22f1f78f5ce97e6c0ab49f (patch)
tree3128578d89f36fed0aa5ab7b3ede6311751dd7f8 /module/plugins/crypter/UploadedToFolder.py
parent[UlozTo] Fix TRAFFIC_LEFT_PATTERN (diff)
downloadpyload-854efeb463bd98cb8e22f1f78f5ce97e6c0ab49f.tar.xz
Spare code cosmetics
Diffstat (limited to 'module/plugins/crypter/UploadedToFolder.py')
-rw-r--r--module/plugins/crypter/UploadedToFolder.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/module/plugins/crypter/UploadedToFolder.py b/module/plugins/crypter/UploadedToFolder.py
index 3e77d73a9..0a71add70 100644
--- a/module/plugins/crypter/UploadedToFolder.py
+++ b/module/plugins/crypter/UploadedToFolder.py
@@ -12,7 +12,7 @@ class UploadedToFolder(SimpleCrypter):
__type__ = "crypter"
__version__ = "0.42"
- __pattern__ = r'http://(?:www\.)?(uploaded|ul)\.(to|net)/(f|folder|list)/(?P<id>\w+)'
+ __pattern__ = r'http://(?:www\.)?(uploaded|ul)\.(to|net)/(f|folder|list)/(?P<ID>\w+)'
__config__ = [("use_subfolder", "bool", "Save package to subfolder", True),
("subfolder_per_package", "bool", "Create a subfolder for each package", True)]
@@ -21,7 +21,7 @@ class UploadedToFolder(SimpleCrypter):
__authors__ = [("stickell", "l.stickell@yahoo.it")]
- PLAIN_PATTERN = r'<small class="date"><a href="(?P<plain>[\w/]+)" onclick='
+ PLAIN_PATTERN = r'<small class="date"><a href="([\w/]+)" onclick='
NAME_PATTERN = r'<title>(?P<N>.+?)<'
@@ -30,7 +30,7 @@ class UploadedToFolder(SimpleCrypter):
if m is None:
self.error(_("PLAIN_PATTERN not found"))
- plain_link = urljoin("http://uploaded.net/", m.group('plain'))
+ plain_link = urljoin("http://uploaded.net/", m.group(1))
return self.load(plain_link).split('\n')[:-1]