summaryrefslogtreecommitdiffstats
path: root/module/plugins/crypter/FilefactoryCom.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/crypter/FilefactoryCom.py')
-rw-r--r--module/plugins/crypter/FilefactoryCom.py17
1 files changed, 10 insertions, 7 deletions
diff --git a/module/plugins/crypter/FilefactoryCom.py b/module/plugins/crypter/FilefactoryCom.py
index bdfeec46f..c6bdb81eb 100644
--- a/module/plugins/crypter/FilefactoryCom.py
+++ b/module/plugins/crypter/FilefactoryCom.py
@@ -1,12 +1,12 @@
# -*- coding: utf-8 -*-
-from pyload.plugin.internal.SimpleCrypter import SimpleCrypter
+from module.plugins.internal.SimpleCrypter import SimpleCrypter
class FilefactoryCom(SimpleCrypter):
__name__ = "FilefactoryCom"
__type__ = "crypter"
- __version__ = "0.31"
+ __version__ = "0.32"
__pattern__ = r'https?://(?:www\.)?filefactory\.com/(?:f|folder)/\w+'
__config__ = [("use_subfolder", "bool", "Save package to subfolder", True),
@@ -17,12 +17,15 @@ class FilefactoryCom(SimpleCrypter):
__authors__ = [("stickell", "l.stickell@yahoo.it")]
- LINK_PATTERN = r'<td><a href="([^"]+)">'
- NAME_PATTERN = r'<h1>Files in <span>(?P<N>.+)</span></h1>'
- PAGES_PATTERN = r'data-paginator-totalPages="(\d+)"'
-
COOKIES = [("filefactory.com", "locale", "en_US.utf8")]
+ LINK_PATTERN = r'<td>\s*<a href="(.+?)"'
+ NAME_PATTERN = r'<h1>Files in <span>(?P<N>.+?)<'
+ PAGES_PATTERN = r'data-paginator-totalPages="(\d+)'
+
def loadPage(self, page_n):
- return self.load(self.pyfile.url, get={'page': page_n})
+ return self.load(self.pyfile.url, get={'page': page_n, 'show': 100})
+
+
+getInfo = create_getInfo(FilefactoryComFolder)