From 924b9e2e7e0d651662b4bd00936b7f4675e7947f Mon Sep 17 00:00:00 2001 From: zoidberg10 Date: Tue, 20 Sep 2011 17:10:52 +0200 Subject: New plugins: HellspyCz, LetitbitNet, FreevideoCz, StreamCz, UlozToFolder --- module/plugins/hoster/BezvadataCz.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'module/plugins/hoster/BezvadataCz.py') diff --git a/module/plugins/hoster/BezvadataCz.py b/module/plugins/hoster/BezvadataCz.py index f9784142f..71622885a 100644 --- a/module/plugins/hoster/BezvadataCz.py +++ b/module/plugins/hoster/BezvadataCz.py @@ -22,21 +22,22 @@ from module.plugins.Hoster import Hoster class BezvadataCz(Hoster): __name__ = "BezvadataCz" __type__ = "hoster" - __pattern__ = r"http://(\w*\.)?bezvadata.cz/stahnout/.*" - __version__ = "0.1" + __pattern__ = r"http://(\w*\.)*bezvadata.cz/stahnout/.*" + __version__ = "0.2" __description__ = """BezvaData.cz""" __author_name__ = ("zoidberg") + __author_mail__ = ("zoidberg@mujmail.cz") ID_PATTERN = r'' HASH_PATTERN = r'' - FILENAME_PATTERN = r'BezvaData \| Stďż˝hnout soubor ([^<]+)' + FILENAME_PATTERN = r'BezvaData \| Stáhnout soubor ([^<]+)' OFFLINE_PATTERN = r'BezvaData \| Soubor nenalezen' def setup(self): self.multiDL = False def process(self, pyfile): - self.html = self.load(pyfile.url, decode=True) + self.html = self.load(pyfile.url, decode = True) if re.search(self.OFFLINE_PATTERN, self.html) is not None: self.offline() @@ -51,16 +52,15 @@ class BezvadataCz(Hoster): self.fail("Parse error (ID)") souborId = found.group(1) - found = re.search(self.ID_PATTERN, self.html) + found = re.search(self.HASH_PATTERN, self.html) if found is None: self.fail("Parse error (HASH)") souborHash = found.group(1) - self.logDebug("URL:" + pyfile.url + " ID:" + souborId + " HASH:" + souborHash) + self.logDebug("URL:"+pyfile.url+" ID:"+souborId+" HASH:"+souborHash) - self.download(pyfile.url, post={ + self.download(pyfile.url, post = { "souborId": souborId, "souborHash": souborHash, "_send": 'STAHNOUT SOUBOR' - }) - \ No newline at end of file + }) \ No newline at end of file -- cgit v1.2.3