#!/usr/bin/env python # -*- coding: utf-8 -*- import re from module.Plugin import Plugin class XupIn(Plugin): def __init__(self, parent): Plugin.__init__(self, parent) props = {} props['name'] = "XupIn" props['type'] = "hoster" props['pattern'] = r"http://(?:www.)?xup.in/" props['version'] = "0.1" props['description'] = """Xup.in Download Plugin""" props['author_name'] = ("spoob") props['author_mail'] = ("spoob@pyload.org") self.props = props self.parent = parent self.html = None self.multi_dl = False self.posts = {} self.url = self.parent.url if "xup.in/pic" in self.parent.url: self.url = self.parent.url.replace("xup.in/pic", "xup.in/dl") def get_file_url(self): self.posts["vid"] = re.search('"hidden" value="(.*)" name="vid"', self.html).group(1) self.posts["vtime"] = re.search('"hidden" value="(.*)" name="vtime"', self.html).group(1) file_url_pattern = r"