#!/usr/bin/env python # -*- coding: utf-8 -*- import re import urllib from module.plugins.Hoster import Hoster class DepositfilesCom(Hoster): __name__ = "DepositfilesCom" __type__ = "hoster" __pattern__ = r"http://[\w\.]*?depositfiles\.com(/\w{1,3})?/files/[\w]+" __version__ = "0.31" __description__ = """Depositfiles.com Download Hoster""" __author_name__ = ("spoob") __author_mail__ = ("spoob@pyload.org") def setup(self): self.req.canContinue = self.multiDL = True if self.account else False def process(self, pyfile): self.html = self.load(self.pyfile.url, cookies=True if self.account else False) if re.search(r"Such file does not exist or it has been removed for infringement of copyrights", self.html): self.offline() if not self.account: self.handleFree() pyfile.name = re.search('File name: ', self.html).group(1) if self.account: link = urllib.unquote(re.search('
\s*(.*?)', self.html).group(1)) #self.setWait(wait_time) #self.log.debug("DepositFiles.com: Waiting %d seconds." % wait_time)