diff options
author | mkaay <mkaay@mkaay.de> | 2010-05-05 23:03:43 +0200 |
---|---|---|
committer | mkaay <mkaay@mkaay.de> | 2010-05-05 23:03:43 +0200 |
commit | 81508f295cffc40c479fe72f24bdf1dbbedf5d92 (patch) | |
tree | 0cb68f0a525d0ead0cd8130c3adad150c49b81a7 /module/plugins/hoster/DuckloadCom.py | |
parent | megavideo.com plugin (diff) | |
download | pyload-81508f295cffc40c479fe72f24bdf1dbbedf5d92.tar.xz |
refactored plugins, new plugin manager
Diffstat (limited to 'module/plugins/hoster/DuckloadCom.py')
-rw-r--r-- | module/plugins/hoster/DuckloadCom.py | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/module/plugins/hoster/DuckloadCom.py b/module/plugins/hoster/DuckloadCom.py index c64842846..34a6a5146 100644 --- a/module/plugins/hoster/DuckloadCom.py +++ b/module/plugins/hoster/DuckloadCom.py @@ -2,22 +2,20 @@ # -*- coding: utf-8 -*-
import re
-from module.plugins.Plugin import Plugin
+from module.plugins.Hoster import Hoster
from time import time
-class DuckloadCom(Plugin):
+class DuckloadCom(Hoster):
+ __name__ = "DuckloadCom"
+ __type__ = "hoster"
+ __pattern__ = r"http://(?:www\.)?duckload\.com/divx/"
+ __version__ = "0.1"
+ __description__ = """Duckload.com Download Hoster"""
+ __author_name__ = ("wugy")
+ __author_mail__ = ("wugy@qip.ru")
def __init__(self, parent):
- Plugin.__init__(self, parent)
- props = {}
- props['name'] = "DuckloadCom"
- props['type'] = "hoster"
- props['pattern'] = r"http://(?:www\.)?duckload\.com/divx/"
- props['version'] = "0.1"
- props['description'] = """Duckload.com Download Plugin"""
- props['author_name'] = ("wugy")
- props['author_mail'] = ("wugy@qip.ru")
- self.props = props
+ Hoster.__init__(self, parent)
self.parent = parent
self.html = [None, None]
self.want_reconnect = False
|