diff options
author | cp1 <christopherpool1@googlemail.com> | 2009-06-11 16:50:48 +0200 |
---|---|---|
committer | cp1 <christopherpool1@googlemail.com> | 2009-06-11 16:50:48 +0200 |
commit | fd6e286ee089cf75276f2581471aba254d69fcb5 (patch) | |
tree | 1f91e2063f3182d172d7c7f70c4fdb98b407a60b /Plugins/RSDF.py | |
parent | add wxversion selector to ensure wxWidgets 2.8 is used (diff) | |
download | pyload-fd6e286ee089cf75276f2581471aba254d69fcb5.tar.xz |
correcting false identation (tabs to spaces)
Diffstat (limited to 'Plugins/RSDF.py')
-rw-r--r-- | Plugins/RSDF.py | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/Plugins/RSDF.py b/Plugins/RSDF.py index 74c07a007..d0ac3ec25 100644 --- a/Plugins/RSDF.py +++ b/Plugins/RSDF.py @@ -7,7 +7,7 @@ import binascii from Plugin import Plugin class RSDF(Plugin): - + def __init__(self, parent): Plugin.__init__(self, parent) props = {} @@ -22,38 +22,38 @@ class RSDF(Plugin): self.parent = parent self.multi_dl = True self.links = [] - + def file_exists(self): - """ returns True or False + """ returns True or False """ return True def proceed(self, url, location): try: from Crypto.Cipher import AES - + infile = url.replace("\n", "") Key = binascii.unhexlify('8C35192D964DC3182C6F84F3252239EB4A320D2500000000') - + IV = binascii.unhexlify('FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF') IV_Cipher = AES.new(Key, AES.MODE_ECB) IV = IV_Cipher.encrypt(IV) - + obj = AES.new(Key, AES.MODE_CFB, IV) - + rsdf = open(infile, 'r') - + data = rsdf.read() data = binascii.unhexlify(''.join(data.split())) data = data.splitlines() - + for link in data: link = base64.b64decode(link) link = obj.decrypt(link) decryptedUrl = link.replace('CCF: ', '') self.links.append(decryptedUrl) - + rsdf.close() - + except: print "Kein Crypto installiert, RSDF Plugin kann nicht genutzt werden" |