diff options
| author | 2014-12-10 19:07:53 +0100 | |
|---|---|---|
| committer | 2014-12-10 19:07:53 +0100 | |
| commit | 2439bc22671dde697817291b721bfddb792a93b4 (patch) | |
| tree | dad4615b7f1d664263af6a85392282329aa0b8e0 /pyload/plugins/hoster/MegacrypterCom.py | |
| parent | Revert plugin directory structure (diff) | |
| download | pyload-2439bc22671dde697817291b721bfddb792a93b4.tar.xz | |
Fix plugins key attributes
Diffstat (limited to 'pyload/plugins/hoster/MegacrypterCom.py')
| -rw-r--r-- | pyload/plugins/hoster/MegacrypterCom.py | 16 | 
1 files changed, 8 insertions, 8 deletions
| diff --git a/pyload/plugins/hoster/MegacrypterCom.py b/pyload/plugins/hoster/MegacrypterCom.py index 1ebd167f3..0397437ec 100644 --- a/pyload/plugins/hoster/MegacrypterCom.py +++ b/pyload/plugins/hoster/MegacrypterCom.py @@ -8,15 +8,15 @@ from pyload.plugins.hoster.MegaCoNz import MegaCoNz  class MegacrypterCom(MegaCoNz): -    __name__    = "MegacrypterCom" -    __type__    = "hoster" -    __version__ = "0.21" +    __name    = "MegacrypterCom" +    __type    = "hoster" +    __version = "0.21" -    __pattern__ = r'(https?://\w{0,10}\.?megacrypter\.com/[\w!-]+)' +    __pattern = r'(https?://\w{0,10}\.?megacrypter\.com/[\w!-]+)' -    __description__ = """Megacrypter.com decrypter plugin""" -    __license__     = "GPLv3" -    __authors__     = [("GonzaloSR", "gonzalo@gonzalosr.com")] +    __description = """Megacrypter.com decrypter plugin""" +    __license     = "GPLv3" +    __authors     = [("GonzaloSR", "gonzalo@gonzalosr.com")]      API_URL = "http://megacrypter.com/api" @@ -33,7 +33,7 @@ class MegacrypterCom(MegaCoNz):      def process(self, pyfile):          # match is guaranteed because plugin was chosen to handle url -        node = re.match(self.__pattern__, pyfile.url).group(1) +        node = re.match(self.__pattern, pyfile.url).group(1)          # get Mega.co.nz link info          info = self.callApi(link=node, m="info") | 
