summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--module/plugins/accounts/CzshareCom.py3
-rw-r--r--module/plugins/hoster/CzshareCom.py7
2 files changed, 6 insertions, 4 deletions
diff --git a/module/plugins/accounts/CzshareCom.py b/module/plugins/accounts/CzshareCom.py
index 97c2ddca6..7b1a8edc5 100644
--- a/module/plugins/accounts/CzshareCom.py
+++ b/module/plugins/accounts/CzshareCom.py
@@ -25,7 +25,7 @@ from module.plugins.Account import Account
class CzshareCom(Account):
__name__ = "CzshareCom"
- __version__ = "0.12"
+ __version__ = "0.13"
__type__ = "account"
__description__ = """czshare.com account plugin"""
__author_name__ = ("zoidberg", "stickell")
@@ -34,7 +34,6 @@ class CzshareCom(Account):
CREDIT_LEFT_PATTERN = r'<tr class="active">\s*<td>([0-9 ,]+) (KiB|MiB|GiB)</td>\s*<td>([^<]*)</td>\s*</tr>'
def loadAccountInfo(self, user, req):
- self.relogin(user)
html = req.load("http://czshare.com/prehled_kreditu/")
found = re.search(self.CREDIT_LEFT_PATTERN, html)
diff --git a/module/plugins/hoster/CzshareCom.py b/module/plugins/hoster/CzshareCom.py
index a4a811e82..347427586 100644
--- a/module/plugins/hoster/CzshareCom.py
+++ b/module/plugins/hoster/CzshareCom.py
@@ -16,6 +16,9 @@
@author: zoidberg
"""
+# Test links (random.bin):
+# http://czshare.com/5278880/random.bin
+
import re
from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo, PluginParseError
from module.utils import parseFileSize
@@ -24,7 +27,7 @@ class CzshareCom(SimpleHoster):
__name__ = "CzshareCom"
__type__ = "hoster"
__pattern__ = r"http://(\w*\.)*czshare\.(com|cz)/(\d+/|download.php\?).*"
- __version__ = "0.92"
+ __version__ = "0.93"
__description__ = """CZshare.com"""
__author_name__ = ("zoidberg")
@@ -80,7 +83,7 @@ class CzshareCom(SimpleHoster):
self.resetAccount()
# download the file, destination is determined by pyLoad
- self.download("http://czshare.com/profi_down.php", cookies=True, post=inputs)
+ self.download("http://czshare.com/profi_down.php", post=inputs, disposition=True)
self.checkDownloadedFile()
def handleFree(self):