From 03f2a4599193ed35fc654bba5155ffd7499bdfbf Mon Sep 17 00:00:00 2001 From: Stefano Date: Fri, 14 Jun 2013 12:57:12 +0200 Subject: Premium4.me -> Premium.to --- module/plugins/hoster/Premium4Me.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'module/plugins/hoster/Premium4Me.py') diff --git a/module/plugins/hoster/Premium4Me.py b/module/plugins/hoster/Premium4Me.py index 08479b59c..4058c707a 100644 --- a/module/plugins/hoster/Premium4Me.py +++ b/module/plugins/hoster/Premium4Me.py @@ -11,11 +11,11 @@ from module.utils import fs_encode class Premium4Me(Hoster): __name__ = "Premium4Me" - __version__ = "0.06" + __version__ = "0.07" __type__ = "hoster" - __pattern__ = r"http://premium4.me/.*" - __description__ = """premium4.me hoster plugin""" + __pattern__ = r"http://premium.to/.*" + __description__ = """Premium.to hoster plugin""" __author_name__ = ("RaNaN", "zoidberg", "stickell") __author_mail__ = ("RaNaN@pyload.org", "zoidberg@mujmail.cz", "l.stickell@yahoo.it") @@ -25,10 +25,10 @@ class Premium4Me(Hoster): def process(self, pyfile): if not self.account: - self.logError(_("Please enter your premium4.me account or deactivate this plugin")) - self.fail("No premium4.me account provided") + self.logError(_("Please enter your premium.to account or deactivate this plugin")) + self.fail("No premium.to account provided") - self.logDebug("premium4.me: Old URL: %s" % pyfile.url) + self.logDebug("premium.to: Old URL: %s" % pyfile.url) tra = self.getTraffic() @@ -36,7 +36,7 @@ class Premium4Me(Hoster): self.req.setOption("timeout", 120) self.download( - "http://premium4.me/api/getfile.php?authcode=%s&link=%s" % (self.account.authcode, quote(pyfile.url, "")), + "http://premium.to/api/getfile.php?authcode=%s&link=%s" % (self.account.authcode, quote(pyfile.url, "")), disposition=True) check = self.checkDownload({"nopremium": "No premium account available"}) @@ -64,7 +64,7 @@ class Premium4Me(Hoster): def getTraffic(self): try: - traffic = int(self.load("http://premium4.me/api/traffic.php?authcode=%s" % self.account.authcode)) + traffic = int(self.load("http://premium.to/api/traffic.php?authcode=%s" % self.account.authcode)) except: traffic = 0 return traffic -- cgit v1.2.3