summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar GammaC0de <GammaC0de@users.noreply.github.com> 2016-07-28 15:20:26 +0200
committerGravatar GitHub <noreply@github.com> 2016-07-28 15:20:26 +0200
commitaa6ace1c1501c8f2416b1951b95a7cf20d1dcf5c (patch)
treee99810bdc1c9b0064c99de26693e6e42d0afbc2b
parent[GoogledriveCom] Minor change (diff)
parent[FastshareCz] free pattern update (diff)
downloadpyload-aa6ace1c1501c8f2416b1951b95a7cf20d1dcf5c.tar.xz
Merge pull request #2557 from kaarl/stable
[FastshareCz] free pattern update
-rw-r--r--module/plugins/hoster/FastshareCz.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/module/plugins/hoster/FastshareCz.py b/module/plugins/hoster/FastshareCz.py
index b45e0ac23..87f9773ee 100644
--- a/module/plugins/hoster/FastshareCz.py
+++ b/module/plugins/hoster/FastshareCz.py
@@ -9,7 +9,7 @@ from module.plugins.internal.SimpleHoster import SimpleHoster
class FastshareCz(SimpleHoster):
__name__ = "FastshareCz"
__type__ = "hoster"
- __version__ = "0.39"
+ __version__ = "0.40"
__status__ = "testing"
__pattern__ = r'http://(?:www\.)?fastshare\.cz/\d+/.+'
@@ -31,7 +31,7 @@ class FastshareCz(SimpleHoster):
SIZE_PATTERN = r'>Size\s*:</strong> (?P<S>[\d.,]+) (?P<U>[\w^_]+)'
OFFLINE_PATTERN = r'>(The file has been deleted|Requested page not found)'
- LINK_FREE_PATTERN = r'>Enter the code\s*:</em>\s*<span><img src="(.+?)"'
+ LINK_FREE_PATTERN = r'id=form action=(.+?)>\s*<p><em>Enter the code\s*:</em>\s*<span><img src="(.+?)"'
LINK_PREMIUM_PATTERN = r'(http://\w+\.fastshare\.cz/download\.php\?id=\d+&)'
SLOT_ERROR = "> 100% of FREE slots are full"
@@ -52,11 +52,11 @@ class FastshareCz(SimpleHoster):
def handle_free(self, pyfile):
- m = re.search(self.FREE_URL_PATTERN, self.data)
+ m = re.search(self.LINK_FREE_PATTERN, self.data)
if m is not None:
action, captcha_src = m.groups()
else:
- self.error(_("FREE_URL_PATTERN not found"))
+ self.error(_("LINK_FREE_PATTERN not found"))
baseurl = "http://www.fastshare.cz"
captcha = self.captcha.decrypt(urlparse.urljoin(baseurl, captcha_src))