summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/PremiumTo.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2015-01-02 02:37:18 +0100
committerGravatar Walter Purcaro <vuolter@gmail.com> 2015-01-02 02:37:18 +0100
commite0cba81ae8d59ee24e1cd1f1cf1697c5e61118ce (patch)
treefa3dca0013f2ddeec68b6bb8cc728829379748b1 /module/plugins/hoster/PremiumTo.py
parent[RapiduNet] Account trafficleft (diff)
downloadpyload-e0cba81ae8d59ee24e1cd1f1cf1697c5e61118ce.tar.xz
[PremiumTo] Fixup
Diffstat (limited to 'module/plugins/hoster/PremiumTo.py')
-rw-r--r--module/plugins/hoster/PremiumTo.py14
1 files changed, 2 insertions, 12 deletions
diff --git a/module/plugins/hoster/PremiumTo.py b/module/plugins/hoster/PremiumTo.py
index fa4caad5a..5dd8e3bec 100644
--- a/module/plugins/hoster/PremiumTo.py
+++ b/module/plugins/hoster/PremiumTo.py
@@ -3,8 +3,6 @@
from __future__ import with_statement
from os import remove
-from os.path import exists
-from urllib import quote
from module.plugins.internal.MultiHoster import MultiHoster, create_getInfo
from module.utils import fs_encode
@@ -13,7 +11,7 @@ from module.utils import fs_encode
class PremiumTo(MultiHoster):
__name__ = "PremiumTo"
__type__ = "hoster"
- __version__ = "0.16"
+ __version__ = "0.17"
__pattern__ = r'https?://(?:www\.)?premium\.to/.+'
@@ -24,20 +22,12 @@ class PremiumTo(MultiHoster):
("stickell", "l.stickell@yahoo.it")]
- def setup(self):
- self.resumeDownload = True
- self.chunkLimit = 1
-
-
def handlePremium(self):
#raise timeout to 2min
- self.req.setOption("timeout", 120)
-
- self.link = True
self.download("http://premium.to/api/getfile.php",
get={'username': self.account.username,
'password': self.account.password,
- 'link' : quote(self.pyfile.url, "")},
+ 'link' : self.pyfile.url},
disposition=True)