diff options
author | Jeix <devnull@localhost> | 2010-08-01 14:11:19 +0200 |
---|---|---|
committer | Jeix <devnull@localhost> | 2010-08-01 14:11:19 +0200 |
commit | f94a0a5d7b74ca430a81084d843f0c096c2b4551 (patch) | |
tree | 17479ca12d17620c8fd5969a1dcd4e5c1387b516 /module/plugins/hoster/RedtubeCom.py | |
parent | some fixes (diff) | |
download | pyload-f94a0a5d7b74ca430a81084d843f0c096c2b4551.tar.xz |
plugin updates to new interface
Diffstat (limited to 'module/plugins/hoster/RedtubeCom.py')
-rw-r--r-- | module/plugins/hoster/RedtubeCom.py | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/module/plugins/hoster/RedtubeCom.py b/module/plugins/hoster/RedtubeCom.py index 6cbd6416e..6a9baffbe 100644 --- a/module/plugins/hoster/RedtubeCom.py +++ b/module/plugins/hoster/RedtubeCom.py @@ -9,19 +9,22 @@ class RedtubeCom(Hoster): __name__ = "RedtubeCom"
__type__ = "hoster"
__pattern__ = r'http://[\w\.]*?redtube\.com/\d+'
- __version__ = "0.1"
+ __version__ = "0.2"
__description__ = """Redtube.com Download Hoster"""
__author_name__ = ("jeix")
__author_mail__ = ("jeix@hasnomail.de")
- def __init__(self, parent):
- Hoster.__init__(self, parent)
- self.parent = parent
- self.html = None
+ def process(self, pyfile):
+ self.download_html()
+ if not self.file_exists():
+ offline()
+
+ pyfile.name = self.get_file_name()
+ self.download(self.get_file_url())
def download_html(self):
- url = self.parent.url
- self.html = self.req.load(url)
+ url = self.pyfile.url
+ self.html = self.load(url)
def get_file_url(self):
""" returns the absolute downloadable filepath
|