summaryrefslogtreecommitdiffstats
path: root/module/plugins/crypter/QuickshareCzFolder.py
diff options
context:
space:
mode:
authorGravatar Stefano <l.stickell@yahoo.it> 2013-07-21 15:03:21 +0200
committerGravatar Stefano <l.stickell@yahoo.it> 2013-07-21 15:03:21 +0200
commit4b61d36bf18931df0a9720047b3619ce245f8a1b (patch)
treefa6214ca6c85eb547dfe7de1ec7502ff3ce71793 /module/plugins/crypter/QuickshareCzFolder.py
parentNormalize line endings to avoid line endings merge conflicts (diff)
downloadpyload-4b61d36bf18931df0a9720047b3619ce245f8a1b.tar.xz
Fixed PEP 8 violations in Crypters
Diffstat (limited to 'module/plugins/crypter/QuickshareCzFolder.py')
-rw-r--r--module/plugins/crypter/QuickshareCzFolder.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/module/plugins/crypter/QuickshareCzFolder.py b/module/plugins/crypter/QuickshareCzFolder.py
index 6cb049935..18ac68eec 100644
--- a/module/plugins/crypter/QuickshareCzFolder.py
+++ b/module/plugins/crypter/QuickshareCzFolder.py
@@ -3,6 +3,7 @@
import re
from module.plugins.Crypter import Crypter
+
class QuickshareCzFolder(Crypter):
__name__ = "QuickshareCzFolder"
__type__ = "crypter"
@@ -12,16 +13,16 @@ class QuickshareCzFolder(Crypter):
__author_name__ = ("zoidberg")
__author_mail__ = ("zoidberg@mujmail.cz")
-
FOLDER_PATTERN = r'<textarea[^>]*>(.*?)</textarea>'
LINK_PATTERN = r'(http://www.quickshare.cz/\S+)'
def decrypt(self, pyfile):
html = self.load(self.pyfile.url)
- new_links = []
+ new_links = []
found = re.search(self.FOLDER_PATTERN, html, re.DOTALL)
- if found is None: self.fail("Parse error (FOLDER)")
+ if found is None:
+ self.fail("Parse error (FOLDER)")
new_links.extend(re.findall(self.LINK_PATTERN, found.group(1)))
if new_links: