summaryrefslogtreecommitdiffstats
path: root/module/plugins/crypter
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-07-19 00:28:18 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-07-19 00:28:18 +0200
commita0e2459f2d1506912ac4a5d0c330c8dae01a4768 (patch)
treef7fcbc10a7b1b5b862889b5388b319a43fce7dc9 /module/plugins/crypter
parentCode cosmetics (2) (diff)
downloadpyload-a0e2459f2d1506912ac4a5d0c330c8dae01a4768.tar.xz
Improve fixurl method
Diffstat (limited to 'module/plugins/crypter')
-rw-r--r--module/plugins/crypter/TurbobitNetFolder.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/module/plugins/crypter/TurbobitNetFolder.py b/module/plugins/crypter/TurbobitNetFolder.py
index f8e56712f..4d07704fb 100644
--- a/module/plugins/crypter/TurbobitNetFolder.py
+++ b/module/plugins/crypter/TurbobitNetFolder.py
@@ -40,9 +40,7 @@ class TurbobitNetFolder(SimpleCrypter):
def get_links(self):
- id = re.match(self.__pattern__, self.pyfile.url).group('ID')
- fixurl = lambda id: "http://turbobit.net/%s.html" % id
- return map(fixurl, self._get_links(id))
+ return ["http://turbobit.net/%s.html" % id for id in self._get_links(self.info['pattern']['ID'])]
getInfo = create_getInfo(TurbobitNetFolder)