summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/MegavideoCom.py
diff options
context:
space:
mode:
authorGravatar mkaay <mkaay@mkaay.de> 2010-05-05 23:03:43 +0200
committerGravatar mkaay <mkaay@mkaay.de> 2010-05-05 23:03:43 +0200
commit81508f295cffc40c479fe72f24bdf1dbbedf5d92 (patch)
tree0cb68f0a525d0ead0cd8130c3adad150c49b81a7 /module/plugins/hoster/MegavideoCom.py
parentmegavideo.com plugin (diff)
downloadpyload-81508f295cffc40c479fe72f24bdf1dbbedf5d92.tar.xz
refactored plugins, new plugin manager
Diffstat (limited to 'module/plugins/hoster/MegavideoCom.py')
-rw-r--r--module/plugins/hoster/MegavideoCom.py23
1 files changed, 11 insertions, 12 deletions
diff --git a/module/plugins/hoster/MegavideoCom.py b/module/plugins/hoster/MegavideoCom.py
index 9e6df3cc9..7ea045447 100644
--- a/module/plugins/hoster/MegavideoCom.py
+++ b/module/plugins/hoster/MegavideoCom.py
@@ -3,21 +3,20 @@
import re
from time import time
-from module.plugins.Plugin import Plugin
+from module.plugins.Hoster import Hoster
from module.unescape import unescape
-class MegavideoCom(Plugin):
+class MegavideoCom(Hoster):
+ __name__ = "MegavideoCom"
+ __type__ = "hoster"
+ __pattern__ = r"http://(www\.)?megavideo.com/\?v=.*"
+ __version__ = "0.1"
+ __description__ = """Megavideo.com Download Hoster"""
+ __author_name__ = ("jeix","mkaay")
+ __author_mail__ = ("jeix@hasnomail.de","mkaay@mkaay.de")
+
def __init__(self, parent):
- Plugin.__init__(self, parent)
- props = {}
- props['name'] = "MegavideoCom"
- props['type'] = "hoster"
- props['pattern'] = r"http://(www\.)?megavideo.com/\?v=.*"
- props['version'] = "0.1"
- props['description'] = """Megavideo.com Download Plugin"""
- props['author_name'] = ("jeix","mkaay")
- props['author_mail'] = ("jeix@hasnomail.de","mkaay@mkaay.de")
- self.props = props
+ Hoster.__init__(self, parent)
self.parent = parent
self.html = None