diff options
| author | 2014-06-30 02:28:24 +0200 | |
|---|---|---|
| committer | 2014-06-30 02:28:24 +0200 | |
| commit | 3b7277cd0013539dd2cd65fd270f7643a5c3779a (patch) | |
| tree | f09763c0c9d57d6d1895cd837ed2e5614a4f5bdf /module/plugins | |
| parent | [SimpleHoster] Improve documentation of own public attributes (diff) | |
| download | pyload-3b7277cd0013539dd2cd65fd270f7643a5c3779a.tar.xz | |
[RSDF] Improve code a bit (thx charlie89)
Diffstat (limited to 'module/plugins')
| -rw-r--r-- | module/plugins/container/RSDF.py | 7 | 
1 files changed, 5 insertions, 2 deletions
diff --git a/module/plugins/container/RSDF.py b/module/plugins/container/RSDF.py index 42296f2d5..f7d3f7377 100644 --- a/module/plugins/container/RSDF.py +++ b/module/plugins/container/RSDF.py @@ -6,9 +6,10 @@ import re  from module.plugins.Container import Container +  class RSDF(Container):      __name__ = "RSDF" -    __version__ = "0.21" +    __version__ = "0.22"      __pattern__ = r'.+\.rsdf'      __description__ = """RSDF container decrypter plugin"""      __author_name__ = ("RaNaN", "spoob") @@ -38,10 +39,12 @@ class RSDF(Container):              links = []              for link in data: +                if link == '': +                    continue                  link = base64.b64decode(link)                  link = obj.decrypt(link)                  decryptedUrl = link.replace('CCF: ', '')                  links.append(decryptedUrl) -            self.log.debug("%s: adding package %s with %d links" % (self.__name__,pyfile.package().name,len(links))) +            self.log.debug("%s: adding package %s with %d links" % (self.__name__, pyfile.package().name, len(links)))              self.packages.append((pyfile.package().name, links))  | 
