summaryrefslogtreecommitdiffstats
path: root/module/plugins/crypter/DlProtectCom.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-12-14 16:16:10 +0100
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-12-27 21:20:55 +0100
commitb8387e72fd3e679db00e03ebd3e3863bfbe8584a (patch)
tree71ae1fa66d8e0e24a4dd6d4edda118b8a673e8ef /module/plugins/crypter/DlProtectCom.py
parent[accounts] Strict comparison for numbers (diff)
downloadpyload-b8387e72fd3e679db00e03ebd3e3863bfbe8584a.tar.xz
[crypters] Remove create_getInfo + minor code cosmetics (w/ strict comparison for numbers)
Diffstat (limited to 'module/plugins/crypter/DlProtectCom.py')
-rw-r--r--module/plugins/crypter/DlProtectCom.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/module/plugins/crypter/DlProtectCom.py b/module/plugins/crypter/DlProtectCom.py
index 06904d593..f9b6b1834 100644
--- a/module/plugins/crypter/DlProtectCom.py
+++ b/module/plugins/crypter/DlProtectCom.py
@@ -4,7 +4,7 @@ import base64
import re
import time
-from module.plugins.internal.SimpleCrypter import SimpleCrypter, create_getInfo
+from module.plugins.internal.SimpleCrypter import SimpleCrypter
class DlProtectCom(SimpleCrypter):
@@ -42,7 +42,7 @@ class DlProtectCom(SimpleCrypter):
i = base64.b64decode(i)
# Split information
infos = i.split('|')
- assert(len(infos) == 4)
+ assert(len(infos) is 4)
res = infos[0]
user_agent = infos[1]
plugins = [x.split(';') for x in infos[2].split('&')]
@@ -123,6 +123,3 @@ class DlProtectCom(SimpleCrypter):
# Filters interesting urls from ads
return re.findall(r'<a href="(?P<id>[^/].+?)" target="_blank">(?P=id)</a>', self.data)
-
-
-getInfo = create_getInfo(DlProtectCom)