summaryrefslogtreecommitdiffstats
path: root/module/plugins/container/DLC.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-07-07 01:23:55 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-07-07 01:23:55 +0200
commitb1759bc440cd6013837697eb8de540914f693ffd (patch)
treed170caf63d7f65e44d23ea2d91a65759a1665928 /module/plugins/container/DLC.py
parent[Plugin] Fix decoding in load method (diff)
downloadpyload-b1759bc440cd6013837697eb8de540914f693ffd.tar.xz
No camelCase style anymore
Diffstat (limited to 'module/plugins/container/DLC.py')
-rw-r--r--module/plugins/container/DLC.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/module/plugins/container/DLC.py b/module/plugins/container/DLC.py
index 31037fd45..7d71165b3 100644
--- a/module/plugins/container/DLC.py
+++ b/module/plugins/container/DLC.py
@@ -14,7 +14,7 @@ from module.utils import decode, fs_encode
class DLC(Container):
__name__ = "DLC"
__type__ = "container"
- __version__ = "0.25"
+ __version__ = "0.26"
__pattern__ = r'.+\.dlc$'
@@ -53,20 +53,20 @@ class DLC(Container):
self.data = AES.new(key, AES.MODE_CBC, iv).decrypt(dlc_data).decode('base64')
self.packages = [(name or pyfile.name, links, name or pyfile.name) \
- for name, links in self.getPackages()]
+ for name, links in self.get_packages()]
- def getPackages(self):
+ def get_packages(self):
root = xml.dom.minidom.parseString(self.data).documentElement
content = root.getElementsByTagName("content")[0]
- return self.parsePackages(content)
+ return self.parse_packages(content)
- def parsePackages(self, startNode):
- return [(decode(node.getAttribute("name")).decode('base64'), self.parseLinks(node)) \
+ def parse_packages(self, startNode):
+ return [(decode(node.getAttribute("name")).decode('base64'), self.parse_links(node)) \
for node in startNode.getElementsByTagName("package")]
- def parseLinks(self, startNode):
+ def parse_links(self, startNode):
return [node.getElementsByTagName("url")[0].firstChild.data.decode('base64') \
for node in startNode.getElementsByTagName("file")]