summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-07-10 02:03:02 +0200
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-07-10 03:01:21 +0200
commit632139090a0440d2e61631a5ef4e3eafd728f9c7 (patch)
tree256c47ae111ae5c768aaf0d4d378a8361e2a8989
parent[WarserverCz] Mark as DeadHoster (diff)
downloadpyload-632139090a0440d2e61631a5ef4e3eafd728f9c7.tar.xz
[SimpleCrypter] Support parseError
-rw-r--r--module/plugins/internal/SimpleCrypter.py28
1 files changed, 7 insertions, 21 deletions
diff --git a/module/plugins/internal/SimpleCrypter.py b/module/plugins/internal/SimpleCrypter.py
index 5cf3b55eb..2bcdad6a3 100644
--- a/module/plugins/internal/SimpleCrypter.py
+++ b/module/plugins/internal/SimpleCrypter.py
@@ -1,37 +1,20 @@
# -*- coding: utf-8 -*-
-"""
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License,
- or (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
- See the GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program; if not, see <http://www.gnu.org/licenses/>.
-
- @author: zoidberg
-"""
-
import re
from module.plugins.Crypter import Crypter
from module.utils import html_unescape
-from module.plugins.internal.SimpleHoster import replace_patterns, set_cookies
+from module.plugins.internal.SimpleHoster import PluginParseError, replace_patterns, set_cookies
class SimpleCrypter(Crypter):
__name__ = "SimpleCrypter"
- __version__ = "0.09"
+ __version__ = "0.10"
__pattern__ = None
__type__ = "crypter"
__description__ = """Simple decrypter plugin"""
- __author_name__ = ("stickell", "zoidberg")
- __author_mail__ = ("l.stickell@yahoo.it", "zoidberg@mujmail.cz")
+ __author_name__ = ("stickell", "zoidberg", "Walter Purcaro")
+ __author_mail__ = ("l.stickell@yahoo.it", "zoidberg@mujmail.cz", "vuolter@gmail.com")
"""
Following patterns should be defined by each crypter:
@@ -128,3 +111,6 @@ class SimpleCrypter(Crypter):
for p in xrange(2, pages + 1):
self.html = self.loadPage(p)
self.package_links += self.getLinks()
+
+ def parseError(self, msg):
+ raise PluginParseError(msg)