summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/PromptfileCom.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-07-15 16:25:41 +0200
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-07-15 16:25:41 +0200
commit5060e4c6374a5116d0d8b02528f910f8c5f8bcf9 (patch)
treeb3f80dbd9e759747f9c2acb60f614c5daa7af69e /module/plugins/hoster/PromptfileCom.py
parentFix class definition (diff)
downloadpyload-5060e4c6374a5116d0d8b02528f910f8c5f8bcf9.tar.xz
Fix code indentation, some bad whitespaces and missing authors + use 'not' instead 'is None' + replace __pattern__'s r" with r' + other minor cosmetics
Diffstat (limited to 'module/plugins/hoster/PromptfileCom.py')
-rw-r--r--module/plugins/hoster/PromptfileCom.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/module/plugins/hoster/PromptfileCom.py b/module/plugins/hoster/PromptfileCom.py
index 0b20094aa..ac3af3753 100644
--- a/module/plugins/hoster/PromptfileCom.py
+++ b/module/plugins/hoster/PromptfileCom.py
@@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-
-
############################################################################
# This program is free software: you can redistribute it and/or modify #
# it under the terms of the GNU Affero General Public License as #
@@ -23,10 +22,11 @@ from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo
class PromptfileCom(SimpleHoster):
__name__ = "PromptfileCom"
__type__ = "hoster"
- __pattern__ = r"https?://(?:www\.)?promptfile\.com/"
+ __pattern__ = r'https?://(?:www\.)?promptfile\.com/'
__version__ = "0.1"
- __description__ = """Promptfile.Com File Download Hoster"""
- __author_name__ = ("igel")
+ __description__ = """Promptfile.com hoster plugin"""
+ __author_name__ = "igel"
+ __author_mail__ = "igelkun@myopera.com"
FILE_INFO_PATTERN = r'<span style="[^"]*" title="[^"]*">(?P<N>.*?) \((?P<S>[\d.]+) (?P<U>\w+)\)</span>'
OFFLINE_PATTERN = r'<span style="[^"]*" title="File Not Found">File Not Found</span>'
@@ -49,7 +49,7 @@ class PromptfileCom(SimpleHoster):
if not m:
self.parseError("Unable to detect direct link")
direct = m.group(1)
- self.logDebug('found direct link: ' + direct)
+ self.logDebug("found direct link: " + direct)
self.download(direct, disposition=True)