diff options
-rw-r--r-- | module/plugins/hoster/FastshareCz.py | 4 | ||||
-rw-r--r-- | module/plugins/internal/SimpleHoster.py | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/module/plugins/hoster/FastshareCz.py b/module/plugins/hoster/FastshareCz.py index d2b644d4c..1597d21e5 100644 --- a/module/plugins/hoster/FastshareCz.py +++ b/module/plugins/hoster/FastshareCz.py @@ -27,7 +27,7 @@ class FastshareCz(SimpleHoster): __name__ = "FastshareCz" __type__ = "hoster" __pattern__ = r"http://(?:\w*\.)?fastshare.cz/\d+/.+" - __version__ = "0.18" + __version__ = "0.19" __description__ = """FastShare.cz""" __author_name__ = ("zoidberg", "stickell") @@ -41,8 +41,6 @@ class FastshareCz(SimpleHoster): NOT_ENOUGH_CREDIC_PATTERN = "Nem.te dostate.n. kredit pro sta.en. tohoto souboru" def handleFree(self): - self.html = self.load(self.pyfile.url) - if '100% of FREE slots are full' in self.html: self.retry(120, 60, "No free slots") diff --git a/module/plugins/internal/SimpleHoster.py b/module/plugins/internal/SimpleHoster.py index 640d129b8..56e9a6a3f 100644 --- a/module/plugins/internal/SimpleHoster.py +++ b/module/plugins/internal/SimpleHoster.py @@ -146,7 +146,7 @@ class PluginParseError(Exception): class SimpleHoster(Hoster): __name__ = "SimpleHoster" - __version__ = "0.29" + __version__ = "0.30" __pattern__ = None __type__ = "hoster" __description__ = """Base hoster plugin""" @@ -187,6 +187,8 @@ class SimpleHoster(Hoster): if self.premium and (not self.SH_CHECK_TRAFFIC or self.checkTrafficLeft()): self.handlePremium() else: + # This line is required due to the getURL workaround. Can be removed in 0.5 + self.html = self.load(pyfile.url, decode=not self.SH_BROKEN_ENCODING, cookies=self.SH_COOKIES) self.handleFree() def load(self, url, get={}, post={}, ref=True, cookies=True, just_header=False, decode=False): |