From d7a06aeddb8bc47d4a929ba587043853df3478a4 Mon Sep 17 00:00:00 2001 From: Stefano Date: Tue, 12 Mar 2013 20:20:28 +0100 Subject: EgoFilesCom: now handles premium correctly --- module/plugins/hoster/EgoFilesCom.py | 10 ++++++++-- 1 file 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'Download >', 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) -- cgit v1.2.3