diff options
| author | 2013-03-12 20:20:28 +0100 | |
|---|---|---|
| committer | 2013-03-12 20:20:28 +0100 | |
| commit | d7a06aeddb8bc47d4a929ba587043853df3478a4 (patch) | |
| tree | 30dd08434ac0bbf04cca00827bbe6ed0d92e1726 | |
| parent | Merge pull request #41 from 4Christopher/stable (diff) | |
| download | pyload-d7a06aeddb8bc47d4a929ba587043853df3478a4.tar.xz | |
EgoFilesCom: now handles premium correctly
| -rw-r--r-- | module/plugins/hoster/EgoFilesCom.py | 10 | 
1 files changed, 8 insertions, 2 deletions
| diff --git a/module/plugins/hoster/EgoFilesCom.py b/module/plugins/hoster/EgoFilesCom.py index ad904063c..32feecee2 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.04"
 +    __version__ = "0.05"
      __description__ = """Egofiles.com Download Hoster"""
      __author_name__ = ("stickell")
      __author_mail__ = ("l.stickell@yahoo.it")
 @@ -67,6 +67,12 @@ class EgoFilesCom(SimpleHoster):          self.download(downloadURL)
      def handlePremium(self):
 -        self.download(self.pyfile.url)
 +        self.html = self.load(self.pyfile.url, decode=True)
 +        m = re.search(r'<a href="(?P<link>[^"]+)">Download ></a>', self.html)
 +        if not m:
 +            self.fail('Unable to detect direct download url - Plugin may be out of date')
 +        else:
 +            self.logDebug('DIRECT URL: ' + m.group('link'))
 +            self.download(m.group('link'))
  getInfo = create_getInfo(EgoFilesCom)
 | 
