diff options
Diffstat (limited to 'module')
| -rw-r--r-- | module/plugins/accounts/Premium4Me.py | 12 | ||||
| -rw-r--r-- | module/plugins/hooks/Premium4Me.py | 12 | ||||
| -rw-r--r-- | module/plugins/hoster/Premium4Me.py | 16 | 
3 files changed, 20 insertions, 20 deletions
| diff --git a/module/plugins/accounts/Premium4Me.py b/module/plugins/accounts/Premium4Me.py index de4fdc219..c95b9b129 100644 --- a/module/plugins/accounts/Premium4Me.py +++ b/module/plugins/accounts/Premium4Me.py @@ -2,14 +2,14 @@ from module.plugins.Account import Account  class Premium4Me(Account):
      __name__ = "Premium4Me"
 -    __version__ = "0.02"
 +    __version__ = "0.03"
      __type__ = "account"
 -    __description__ = """Premium4.me account plugin"""
 -    __author_name__ = ("RaNaN", "zoidberg")
 -    __author_mail__ = ("RaNaN@pyload.org", "zoidberg@mujmail.cz")
 +    __description__ = """Premium.to account plugin"""
 +    __author_name__ = ("RaNaN", "zoidberg", "stickell")
 +    __author_mail__ = ("RaNaN@pyload.org", "zoidberg@mujmail.cz", "l.stickell@yahoo.it")
      def loadAccountInfo(self, user, req):
 -        traffic = req.load("http://premium4.me/api/traffic.php?authcode=%s" % self.authcode)
 +        traffic = req.load("http://premium.to/api/traffic.php?authcode=%s" % self.authcode)
          account_info = {"trafficleft": int(traffic) / 1024,
                          "validuntil": -1}
 @@ -17,7 +17,7 @@ class Premium4Me(Account):          return account_info
      def login(self, user, data, req):
 -        self.authcode = req.load("http://premium4.me/api/getauthcode.php?username=%s&password=%s" % (user, data["password"])).strip()
 +        self.authcode = req.load("http://premium.to/api/getauthcode.php?username=%s&password=%s" % (user, data["password"])).strip()
          if "wrong username" in self.authcode:
              self.wrongPassword()
\ No newline at end of file diff --git a/module/plugins/hooks/Premium4Me.py b/module/plugins/hooks/Premium4Me.py index b49eb41a9..16b02ce87 100644 --- a/module/plugins/hooks/Premium4Me.py +++ b/module/plugins/hooks/Premium4Me.py @@ -5,19 +5,19 @@ from module.plugins.internal.MultiHoster import MultiHoster  class Premium4Me(MultiHoster):
      __name__ = "Premium4Me"
 -    __version__ = "0.02"
 +    __version__ = "0.03"
      __type__ = "hook"
      __config__ = [("activated", "bool", "Activated", "False"),
          ("hosterListMode", "all;listed;unlisted", "Use for downloads from supported hosters:", "all"),
          ("hosterList", "str", "Hoster list (comma separated)", "")]
 -    __description__ = """premium4.me hook plugin"""
 -    __author_name__ = ("RaNaN", "zoidberg")
 -    __author_mail__ = ("RaNaN@pyload.org", "zoidberg@mujmail.cz")
 +    __description__ = """Premium.to hook plugin"""
 +    __author_name__ = ("RaNaN", "zoidberg", "stickell")
 +    __author_mail__ = ("RaNaN@pyload.org", "zoidberg@mujmail.cz", "l.stickell@yahoo.it")
      def getHoster(self):
 -        page = getURL("http://premium4.me/api/hosters.php?authcode=%s" % self.account.authcode)
 +        page = getURL("http://premium.to/api/hosters.php?authcode=%s" % self.account.authcode)
          return [x.strip() for x in page.replace("\"", "").split(";")]
      def coreReady(self):
 @@ -27,7 +27,7 @@ class Premium4Me(MultiHoster):          user = self.account.selectAccount()[0]
          if not user:
 -            self.logError(_("Please add your premium4.me account first and restart pyLoad"))
 +            self.logError(_("Please add your premium.to account first and restart pyLoad"))
              return
          return MultiHoster.coreReady(self)
\ No newline at end of file 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       
 | 
