From 81508f295cffc40c479fe72f24bdf1dbbedf5d92 Mon Sep 17 00:00:00 2001 From: mkaay Date: Wed, 5 May 2010 23:03:43 +0200 Subject: refactored plugins, new plugin manager --- module/plugins/hoster/FilesmonsterCom.py | 24 +++++++++++------------- 1 file changed, 11 insertions(+), 13 deletions(-) (limited to 'module/plugins/hoster/FilesmonsterCom.py') diff --git a/module/plugins/hoster/FilesmonsterCom.py b/module/plugins/hoster/FilesmonsterCom.py index 7b764e63a..f52e01760 100644 --- a/module/plugins/hoster/FilesmonsterCom.py +++ b/module/plugins/hoster/FilesmonsterCom.py @@ -1,7 +1,7 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- -# Plugin for www.filesmonster.com +# Hoster for www.filesmonster.com # this plugin isn't fully implemented yet,but it does download # todo: # detect, if reconnect is necessary @@ -13,21 +13,19 @@ import re import urllib import time -from module.plugins.Plugin import Plugin +from module.plugins.Hoster import Hoster -class FilesmonsterCom(Plugin): +class FilesmonsterCom(Hoster): + __name__ = "FilesmonsterCom" + __type__ = "hoster" + __pattern__ = r"http://(www.)??filesmonster.com/download.php" + __version__ = "0.1" + __description__ = """Filesmonster.com Download Hoster""" + __author_name__ = ("sitacuisses","spoob") + __author_mail__ = ("sitacuisses@yahoo.de","spoob@pyload.org") def __init__(self, parent): - Plugin.__init__(self, parent) - props = {} - props['name'] = "FilesmonsterCom" - props['type'] = "hoster" - props['pattern'] = r"http://(www.)??filesmonster.com/download.php" - props['version'] = "0.1" - props['description'] = """Filesmonster.com Download Plugin""" - props['author_name'] = ("sitacuisses","spoob") - props['author_mail'] = ("sitacuisses@yahoo.de","spoob@pyload.org") - self.props = props + Hoster.__init__(self, parent) self.parent = parent self.html = None self.want_reconnect = False -- cgit v1.2.3