summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster
diff options
context:
space:
mode:
authorGravatar Stefano <l.stickell@yahoo.it> 2014-07-02 15:17:50 +0200
committerGravatar Stefano <l.stickell@yahoo.it> 2014-07-02 15:17:50 +0200
commit521a8122e24cbcf27578e88d75fea356b4ea4a5f (patch)
tree0f070d8cbf9a9a0f6f7a67fc4dfed490c0b84da9 /module/plugins/hoster
parent[Filefactory] getInfo handle direct links (diff)
downloadpyload-521a8122e24cbcf27578e88d75fea356b4ea4a5f.tar.xz
[Filefactory] Improved offline pattern
Forced english locale
Diffstat (limited to 'module/plugins/hoster')
-rw-r--r--module/plugins/hoster/FilefactoryCom.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/module/plugins/hoster/FilefactoryCom.py b/module/plugins/hoster/FilefactoryCom.py
index 05edf6b99..ab0d3232f 100644
--- a/module/plugins/hoster/FilefactoryCom.py
+++ b/module/plugins/hoster/FilefactoryCom.py
@@ -35,15 +35,16 @@ class FilefactoryCom(SimpleHoster):
__name__ = "FilefactoryCom"
__type__ = "hoster"
__pattern__ = r'https?://(?:www\.)?filefactory\.com/file/(?P<id>[a-zA-Z0-9]+)'
- __version__ = "0.49"
+ __version__ = "0.50"
__description__ = """Filefactory.com hoster plugin"""
__author_name__ = "stickell"
__author_mail__ = "l.stickell@yahoo.it"
FILE_INFO_PATTERN = r'<div id="file_name"[^>]*>\s*<h2>(?P<N>[^<]+)</h2>\s*<div id="file_info">\s*(?P<S>[\d.]+) (?P<U>\w+) uploaded'
DIRECT_LINK_PATTERN = r'<a href="(https?://[^"]+)"[^>]*><i[^>]*></i> Download with FileFactory Premium</a>'
- FILE_OFFLINE_PATTERN = r'<h2>File Removed</h2>'
+ FILE_OFFLINE_PATTERN = r'<h2>File Removed</h2>|This file is no longer available'
PREMIUM_ONLY_PATTERN = r'>Premium Account Required<'
+ SH_COOKIES = [('.filefactory.com', 'locale', 'en_US.utf8')]
def handleFree(self):
self.html = self.load(self.pyfile.url, decode=True)