From 8e7d14bae4d3c836f029a1235eb227380acc3f75 Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Mon, 16 Feb 2015 21:59:10 +0100 Subject: Fix plugins to work on 0.4.10 --- module/plugins/hoster/MultishareCz.py | 54 ----------------------------------- 1 file changed, 54 deletions(-) delete mode 100644 module/plugins/hoster/MultishareCz.py (limited to 'module/plugins/hoster/MultishareCz.py') diff --git a/module/plugins/hoster/MultishareCz.py b/module/plugins/hoster/MultishareCz.py deleted file mode 100644 index ca626a833..000000000 --- a/module/plugins/hoster/MultishareCz.py +++ /dev/null @@ -1,54 +0,0 @@ -# -*- coding: utf-8 -*- - -import re - -from random import random - -from pyload.plugin.internal.SimpleHoster import SimpleHoster, create_getInfo - - -class MultishareCz(SimpleHoster): - __name__ = "MultishareCz" - __type__ = "hoster" - __version__ = "0.40" - - __pattern__ = r'http://(?:www\.)?multishare\.cz/stahnout/(?P\d+)' - - __description__ = """MultiShare.cz hoster plugin""" - __license__ = "GPLv3" - __authors__ = [("zoidberg", "zoidberg@mujmail.cz")] - - - SIZE_REPLACEMENTS = [(' ', '')] - - CHECK_TRAFFIC = True - MULTI_HOSTER = True - - INFO_PATTERN = ur'(?:
  • Název|Soubor): (?P[^<]+)<(?:/li>Velikost: (?P[^<]+)' - OFFLINE_PATTERN = ur'

    Stáhnout soubor

    Požadovaný soubor neexistuje.

    ' - - - def handleFree(self, pyfile): - self.download("http://www.multishare.cz/html/download_free.php", get={'ID': self.info['pattern']['ID']}) - - - def handlePremium(self, pyfile): - self.download("http://www.multishare.cz/html/download_premium.php", get={'ID': self.info['pattern']['ID']}) - - - def handleMulti(self, pyfile): - self.html = self.load('http://www.multishare.cz/html/mms_ajax.php', post={"link": pyfile.url}, decode=True) - - self.checkInfo() - - if not self.checkTrafficLeft(): - self.fail(_("Not enough credit left to download file")) - - self.download("http://dl%d.mms.multishare.cz/html/mms_process.php" % round(random() * 10000 * random()), - get={'u_ID' : self.acc_info['u_ID'], - 'u_hash': self.acc_info['u_hash'], - 'link' : pyfile.url}, - disposition=True) - - -getInfo = create_getInfo(MultishareCz) -- cgit v1.2.3