summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/IFileWs.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-09-28 16:30:24 +0200
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-09-28 16:30:24 +0200
commit3177003f188d8f48ecafe5483e69f8b838581628 (patch)
treed2ea11252b3ea1f844c16aff7fbe54e54738df6c /module/plugins/hoster/IFileWs.py
parentPrepare method improves setup one (diff)
downloadpyload-3177003f188d8f48ecafe5483e69f8b838581628.tar.xz
[DeadHoster] Improve getInfo + two hosters mark dead
Diffstat (limited to 'module/plugins/hoster/IFileWs.py')
-rw-r--r--module/plugins/hoster/IFileWs.py13
1 files changed, 4 insertions, 9 deletions
diff --git a/module/plugins/hoster/IFileWs.py b/module/plugins/hoster/IFileWs.py
index 94d3e599e..4400449b6 100644
--- a/module/plugins/hoster/IFileWs.py
+++ b/module/plugins/hoster/IFileWs.py
@@ -1,23 +1,18 @@
# -*- coding: utf-8 -*-
-from module.plugins.hoster.XFileSharingPro import XFileSharingPro, create_getInfo
+from module.plugins.internal.DeadHoster import DeadHoster, create_getInfo
-class IFileWs(XFileSharingPro):
+class IFileWs(DeadHoster):
__name__ = "IFileWs"
__type__ = "hoster"
- __version__ = "0.01"
+ __version__ = "0.02"
- __pattern__ = r'http://(?:www\.)?ifile\.ws/\w+(/.+)?'
+ __pattern__ = r'http://(?:www\.)?ifile\.ws/\w{12}'
__description__ = """Ifile.ws hoster plugin"""
__author_name__ = "z00nx"
__author_mail__ = "z00nx0@gmail.com"
- HOSTER_NAME = "ifile.ws"
-
- FILE_INFO_PATTERN = r'<h1\s+style="display:inline;">(?P<N>[^<]+)</h1>\s+\[(?P<S>[^]]+)\]'
- OFFLINE_PATTERN = r'File Not Found|The file was removed by administrator'
-
getInfo = create_getInfo(IFileWs)