diff options
author | Jeix <devnull@localhost> | 2010-08-03 12:30:52 +0200 |
---|---|---|
committer | Jeix <devnull@localhost> | 2010-08-03 12:30:52 +0200 |
commit | b97c7b1d4a6ca288cb945aa823e67685e6da234f (patch) | |
tree | 7ed065805b3fbc1a5669f782fe42cbbcf6ab0b5b /module/plugins/container/RSDF.py | |
parent | new dlc plugins (diff) | |
download | pyload-b97c7b1d4a6ca288cb945aa823e67685e6da234f.tar.xz |
Container updated to new interface
Diffstat (limited to 'module/plugins/container/RSDF.py')
-rw-r--r-- | module/plugins/container/RSDF.py | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/module/plugins/container/RSDF.py b/module/plugins/container/RSDF.py index c906fe05a..ebd41d279 100644 --- a/module/plugins/container/RSDF.py +++ b/module/plugins/container/RSDF.py @@ -14,16 +14,13 @@ class RSDF(Container): __author_name__ = ("RaNaN", "spoob") __author_mail__ = ("RaNaN@pyload.org", "spoob@pyload.org") - def __init__(self, parent): - Container.__init__(self, parent) - self.parent = parent - self.multi_dl = True - self.links = [] - - def proceed(self, url, location): + + def decrypt(self, pyfile): + self.loadToDisk() + from Crypto.Cipher import AES - infile = url.replace("\n", "") + infile = pyfile.url.replace("\n", "") Key = binascii.unhexlify('8C35192D964DC3182C6F84F3252239EB4A320D2500000000') IV = binascii.unhexlify('FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF') @@ -38,10 +35,13 @@ class RSDF(Container): data = binascii.unhexlify(''.join(data.split())) data = data.splitlines() + links = [] for link in data: link = base64.b64decode(link) link = obj.decrypt(link) decryptedUrl = link.replace('CCF: ', '') - self.links.append(decryptedUrl) + links.append(decryptedUrl) rsdf.close() + + self.packages.append((pyfile.name, links, pyfile.name)) |