diff options
Diffstat (limited to 'module/plugins/hoster/EgoFilesCom.py')
| -rw-r--r-- | module/plugins/hoster/EgoFilesCom.py | 11 | 
1 files changed, 10 insertions, 1 deletions
| diff --git a/module/plugins/hoster/EgoFilesCom.py b/module/plugins/hoster/EgoFilesCom.py index 61203f9bd..2109c8ea7 100644 --- a/module/plugins/hoster/EgoFilesCom.py +++ b/module/plugins/hoster/EgoFilesCom.py @@ -13,7 +13,7 @@ class EgoFilesCom(SimpleHoster):      __name__ = "EgoFilesCom"
      __type__ = "hoster"
      __pattern__ = r"https?://(www\.)?egofiles.com/(\w+)"
 -    __version__ = "0.02"
 +    __version__ = "0.03"
      __description__ = """Egofiles.com Download Hoster"""
      __author_name__ = ("stickell")
      __author_mail__ = ("l.stickell@yahoo.it")
 @@ -28,6 +28,12 @@ class EgoFilesCom(SimpleHoster):          # Set English language
          self.load("https://egofiles.com/ajax/lang.php?lang=en", just_header=True)
 +    def process(self, pyfile):
 +        if self.premium:
 +            self.handlePremium()
 +        else:
 +            self.handleFree()
 +
      def handleFree(self):
          self.html = self.load(self.pyfile.url, decode=True)
 @@ -60,4 +66,7 @@ class EgoFilesCom(SimpleHoster):          self.download(downloadURL)
 +    def handlePremium(self):
 +        self.download(self.pyfile.url)
 +
  getInfo = create_getInfo(EgoFilesCom)
 | 
