summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster
diff options
context:
space:
mode:
authorGravatar zoidberg10 <zoidberg@mujmail.cz> 2012-01-16 17:39:27 +0100
committerGravatar zoidberg10 <zoidberg@mujmail.cz> 2012-01-16 17:39:27 +0100
commit8b569a22d9a5b12cc492e97d4cee28deb75a81ed (patch)
tree0ae5aa425d2c917d2f11613fbb3a4e9c71efa36f /module/plugins/hoster
parentadditional extract logs (diff)
downloadpyload-8b569a22d9a5b12cc492e97d4cee28deb75a81ed.tar.xz
workaround premium4.me overcharging
Diffstat (limited to 'module/plugins/hoster')
-rw-r--r--module/plugins/hoster/BezvadataCz.py2
-rw-r--r--module/plugins/hoster/Premium4Me.py3
2 files changed, 3 insertions, 2 deletions
diff --git a/module/plugins/hoster/BezvadataCz.py b/module/plugins/hoster/BezvadataCz.py
index f061fa2b5..680bbc173 100644
--- a/module/plugins/hoster/BezvadataCz.py
+++ b/module/plugins/hoster/BezvadataCz.py
@@ -29,7 +29,7 @@ class BezvadataCz(SimpleHoster):
__author_mail__ = ("zoidberg@mujmail.cz")
FILE_NAME_PATTERN = r'<p><b>Soubor: (?P<N>[^<]+)</b></p>'
- FILE_SIZE_PATTERN = r'<li><strong>Velikost:</strong> (?P<S>[0-9.]+) (?P<U>[kKMG])i?)</li>'
+ FILE_SIZE_PATTERN = r'<li><strong>Velikost:</strong> (?P<S>[^<]+)</li>'
FILE_OFFLINE_PATTERN = r'<title>BezvaData \| Soubor nenalezen</title>'
DOWNLOAD_FORM_PATTERN = r'<form class="download" action="([^"]+)" method="post" id="frm-stahnoutForm">'
diff --git a/module/plugins/hoster/Premium4Me.py b/module/plugins/hoster/Premium4Me.py
index beccdf572..d029b3df1 100644
--- a/module/plugins/hoster/Premium4Me.py
+++ b/module/plugins/hoster/Premium4Me.py
@@ -6,7 +6,7 @@ from module.plugins.Hoster import Hoster
class Premium4Me(Hoster):
__name__ = "Premium4Me"
- __version__ = "0.02"
+ __version__ = "0.03"
__type__ = "hoster"
__pattern__ = r"http://premium4.me/.*"
@@ -16,6 +16,7 @@ class Premium4Me(Hoster):
def setup(self):
self.resumeDownload = True
+ self.chunkLimit = 1
def process(self, pyfile):
if not self.account: