From 61ce00d1945b0d72d2f0323df0c49ef228a96eda Mon Sep 17 00:00:00 2001 From: z00nx Date: Sat, 12 Jan 2013 21:21:48 +1100 Subject: Added IFileWs plugin --- module/plugins/hoster/IFileWs.py | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 module/plugins/hoster/IFileWs.py (limited to 'module/plugins/hoster') diff --git a/module/plugins/hoster/IFileWs.py b/module/plugins/hoster/IFileWs.py new file mode 100644 index 000000000..d2f017c4b --- /dev/null +++ b/module/plugins/hoster/IFileWs.py @@ -0,0 +1,21 @@ +# -*- coding: utf-8 -*- +import re +from module.plugins.hoster.XFileSharingPro import XFileSharingPro, create_getInfo +from module.common.json_layer import json_loads +from module.plugins.ReCaptcha import ReCaptcha + + +class IFileWs(XFileSharingPro): + __name__ = "IFileWs" + __type__ = "hoster" + __pattern__ = r"http://(www\.)?ifile\.ws/\w+(/.+)?" + __version__ = "0.01" + __description__ = """Ifile.ws hoster plugin""" + __author_name__ = ("z00nx") + __author_mail__ = ("z00nx0@gmail.com") + + FILE_INFO_PATTERN = '(?P[^<]+)\s+\[(?P[^]]+)\]' + FILE_OFFLINE_PATTERN = 'File Not Found|The file was removed by administrator' + HOSTER_NAME = "ifile.ws" + +getInfo = create_getInfo(IFileWs) -- cgit v1.2.3