summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/FshareVn.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/hoster/FshareVn.py')
-rw-r--r--module/plugins/hoster/FshareVn.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/module/plugins/hoster/FshareVn.py b/module/plugins/hoster/FshareVn.py
index 1a995ce28..7ce7cd3e6 100644
--- a/module/plugins/hoster/FshareVn.py
+++ b/module/plugins/hoster/FshareVn.py
@@ -58,6 +58,7 @@ class FshareVn(SimpleHoster):
self.handleFree()
self.checkDownloadedFile()
+
def handleFree(self):
self.html = self.load(self.pyfile.url, decode=True)
@@ -94,9 +95,11 @@ class FshareVn(SimpleHoster):
self.wait()
self.download(self.url)
+
def handlePremium(self):
self.download(self.pyfile.url)
+
def checkErrors(self):
if '/error.php?' in self.req.lastEffectiveURL or u"Liên kết bạn chọn không tồn" in self.html:
self.offline()
@@ -111,6 +114,7 @@ class FshareVn(SimpleHoster):
self.logError("Unknown error occured or wait time not parsed")
self.retry(30, 2 * 60, "Unknown error")
+
def checkDownloadedFile(self):
# check download
check = self.checkDownload({