summaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
authorGravatar Stefano <l.stickell@yahoo.it> 2013-03-12 20:20:28 +0100
committerGravatar Stefano <l.stickell@yahoo.it> 2013-03-12 20:20:28 +0100
commitd7a06aeddb8bc47d4a929ba587043853df3478a4 (patch)
tree30dd08434ac0bbf04cca00827bbe6ed0d92e1726 /module
parentMerge pull request #41 from 4Christopher/stable (diff)
downloadpyload-d7a06aeddb8bc47d4a929ba587043853df3478a4.tar.xz
EgoFilesCom: now handles premium correctly
Diffstat (limited to 'module')
-rw-r--r--module/plugins/hoster/EgoFilesCom.py10
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)