diff options
author | Walter Purcaro <vuolter@gmail.com> | 2015-02-24 23:23:21 +0100 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2015-02-24 23:23:21 +0100 |
commit | 4195dff3ebe911c6532d0afd130085cc566e11cc (patch) | |
tree | 0dd1a6b8a4a91f31c13108ae6a4f05eae8fa084c | |
parent | captcha -> OCR (diff) | |
download | pyload-4195dff3ebe911c6532d0afd130085cc566e11cc.tar.xz |
[RSDF] Check if broken
-rw-r--r-- | module/plugins/container/RSDF.py | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/module/plugins/container/RSDF.py b/module/plugins/container/RSDF.py index 222c8d6ae..60e15e2b5 100644 --- a/module/plugins/container/RSDF.py +++ b/module/plugins/container/RSDF.py @@ -14,7 +14,7 @@ from module.utils import fs_encode class RSDF(Container): __name__ = "RSDF" __type__ = "container" - __version__ = "0.28" + __version__ = "0.29" __pattern__ = r'.+\.rsdf$' @@ -47,7 +47,12 @@ class RSDF(Container): if re.search(r"<title>404 - Not Found</title>", data): return - for link in binascii.unhexlify(''.join(data.split())).splitlines(): - if link: + try: + for link in binascii.unhexlify(''.join(data.split())).splitlines(): + if not link: + continue link = cipher.decrypt(link.decode('base64')).replace('CCF: ', '') self.urls.append(link) + + except TypeError: + self.fail(_("Container is corrupted")) |