summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/PremiumTo.py
diff options
context:
space:
mode:
authorGravatar Sahil Shekhawat <sahilshekhawat01@gmail.com> 2015-01-11 14:54:48 +0100
committerGravatar Sahil Shekhawat <sahilshekhawat01@gmail.com> 2015-01-11 14:54:48 +0100
commitd2b60b5ceb369814a0de41c8b8744b5c4ed81523 (patch)
tree6619e01fc0e5f281e4d28678ec565860a86784ec /module/plugins/hoster/PremiumTo.py
parentupdated nitroflare.com's plugin (diff)
parentCode improvements (diff)
downloadpyload-d2b60b5ceb369814a0de41c8b8744b5c4ed81523.tar.xz
Merged with the updated nitroflare
Diffstat (limited to 'module/plugins/hoster/PremiumTo.py')
-rw-r--r--module/plugins/hoster/PremiumTo.py19
1 files changed, 7 insertions, 12 deletions
diff --git a/module/plugins/hoster/PremiumTo.py b/module/plugins/hoster/PremiumTo.py
index 11d4e9541..665005ec3 100644
--- a/module/plugins/hoster/PremiumTo.py
+++ b/module/plugins/hoster/PremiumTo.py
@@ -11,35 +11,28 @@ from module.utils import fs_encode
class PremiumTo(MultiHoster):
__name__ = "PremiumTo"
__type__ = "hoster"
- __version__ = "0.19"
+ __version__ = "0.20"
__pattern__ = r'^unmatchable$'
- __description__ = """Premium.to hoster plugin"""
+ __description__ = """Premium.to multi-hoster plugin"""
__license__ = "GPLv3"
__authors__ = [("RaNaN", "RaNaN@pyload.org"),
("zoidberg", "zoidberg@mujmail.cz"),
("stickell", "l.stickell@yahoo.it")]
- CHECK_TRAFFIC = True
-
-
- def handlePremium(self):
+ def handlePremium(self, pyfile):
#raise timeout to 2min
self.download("http://premium.to/api/getfile.php",
get={'username': self.account.username,
'password': self.account.password,
- 'link' : self.pyfile.url},
+ 'link' : pyfile.url},
disposition=True)
def checkFile(self):
- super(PremiumTo, self).checkFile()
-
- check = self.checkDownload({'nopremium': "No premium account available"})
-
- if check == "nopremium":
+ if self.checkDownload({'nopremium': "No premium account available"}):
self.retry(60, 5 * 60, "No premium account available")
err = ''
@@ -53,5 +46,7 @@ class PremiumTo(MultiHoster):
if err:
self.fail(err)
+ return super(PremiumTo, self).checkFile()
+
getInfo = create_getInfo(PremiumTo)