diff options
author | Walter Purcaro <vuolter@gmail.com> | 2014-07-16 00:46:26 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2014-07-16 00:46:26 +0200 |
commit | a1e78f33dc2b0b6777fdcbc415673f3965b25542 (patch) | |
tree | 4f2f0c9d7592482409740be8647f8f6849d30681 /module/plugins/crypter/LixIn.py | |
parent | [StealthTo] Mark dead (diff) | |
download | pyload-a1e78f33dc2b0b6777fdcbc415673f3965b25542.tar.xz |
Prefer self.urls and self.packages for adding links
Diffstat (limited to 'module/plugins/crypter/LixIn.py')
-rw-r--r-- | module/plugins/crypter/LixIn.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/module/plugins/crypter/LixIn.py b/module/plugins/crypter/LixIn.py index d3c41bd4c..e609c9da4 100644 --- a/module/plugins/crypter/LixIn.py +++ b/module/plugins/crypter/LixIn.py @@ -54,8 +54,6 @@ class LixIn(Crypter): matches = re.search(self.LINK_PATTERN, self.html) if not matches: self.fail("can't find destination url") - - new_link = matches.group("link") - self.logDebug("Found link %s, adding to package" % new_link) - - self.packages.append((pyfile.package().name, [new_link], pyfile.package().name)) + else: + self.urls = [matches.group("link")] + self.logDebug("Found link %s, adding to package" % self.urls[0]) |