diff options
Diffstat (limited to 'module/plugins/hoster/MyfastfileCom.py')
| -rw-r--r-- | module/plugins/hoster/MyfastfileCom.py | 12 | 
1 files changed, 6 insertions, 6 deletions
| diff --git a/module/plugins/hoster/MyfastfileCom.py b/module/plugins/hoster/MyfastfileCom.py index 13ba2af21..5ea2639f1 100644 --- a/module/plugins/hoster/MyfastfileCom.py +++ b/module/plugins/hoster/MyfastfileCom.py @@ -9,11 +9,11 @@ from module.plugins.internal.MultiHoster import MultiHoster, create_getInfo  class MyfastfileCom(MultiHoster):      __name__    = "MyfastfileCom"      __type__    = "hoster" -    __version__ = "0.07" +    __version__ = "0.08"      __pattern__ = r'http://\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}/dl/' -    __description__ = """Myfastfile.com hoster plugin""" +    __description__ = """Myfastfile.com multi-hoster plugin"""      __license__     = "GPLv3"      __authors__     = [("stickell", "l.stickell@yahoo.it")] @@ -22,19 +22,19 @@ class MyfastfileCom(MultiHoster):          self.chunkLimit = -1 -    def handlePremium(self): -        self.logDebug("Original URL: %s" % self.pyfile.url) +    def handlePremium(self, pyfile): +        self.logDebug("Original URL: %s" % pyfile.url)          page = self.load('http://myfastfile.com/api.php',                           get={'user': self.user, 'pass': self.account.getAccountData(self.user)['password'], -                              'link': self.pyfile.url}) +                              'link': pyfile.url})          self.logDebug("JSON data: " + page)          page = json_loads(page)          if page['status'] != 'ok':              self.fail(_("Unable to unrestrict link"))          self.link = page['link'] -        if self.link != self.pyfile.url: +        if self.link != pyfile.url:              self.logDebug("Unrestricted URL: " + self.link) | 
