#!/usr/bin/env python # -*- coding: utf-8 -*- from module.plugins.internal.SimpleHoster import SimpleHoster, parseFileInfo from module.network.RequestFactory import getURL import re def getInfo(urls): for url in urls: html = getURL('http://www.fshare.vn/check_link.php', post = { "action" : "check_link", "arrlinks" : url }, decode = True) file_info = parseFileInfo(FshareVn, url, html) yield file_info def doubleDecode(m): return m.group(1).decode('raw_unicode_escape') class FshareVn(SimpleHoster): __name__ = "FshareVn" __type__ = "hoster" __pattern__ = r"http://(www\.)?fshare.vn/file/.*" __version__ = "0.13" __description__ = """FshareVn Download Hoster""" __author_name__ = ("zoidberg") __author_mail__ = ("zoidberg@mujmail.cz") FILE_INFO_PATTERN = r'
(?P (?P[0-9,.]+)\s*(?P[kKMG])i?B<\\/p>'
FILE_OFFLINE_PATTERN = r'