summaryrefslogtreecommitdiffstats
path: root/module/plugins
diff options
context:
space:
mode:
authorGravatar Stefano <l.stickell@yahoo.it> 2013-03-11 19:48:25 +0100
committerGravatar Stefano <l.stickell@yahoo.it> 2013-03-11 19:48:25 +0100
commitdb38a45f836b444f0bf19eddb493f1d1dae10618 (patch)
tree8637496f68bbaf6b12691f6586a4010e35c7920b /module/plugins
parentNew account plugin for EgoFilesCom (diff)
downloadpyload-db38a45f836b444f0bf19eddb493f1d1dae10618.tar.xz
EgoFilesCom: added support for premium downloads
http://forum.pyload.org/viewtopic.php?f=13&t=1959
Diffstat (limited to 'module/plugins')
-rw-r--r--module/plugins/hoster/EgoFilesCom.py11
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)