summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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)