diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2009-05-20 13:05:21 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2009-05-20 13:05:21 +0200 |
commit | 641cd8c63f4c3a96a9acf4d46450ab975b9c66cd (patch) | |
tree | a1bf0e74c3bde51d174bc0d154d1f88359437fbc /Plugins/UploadedTo.py | |
parent | Modul struktur angelegt und request klasse eingefügt (diff) | |
download | pyload-641cd8c63f4c3a96a9acf4d46450ab975b9c66cd.tar.xz |
Neue Request Klasse eingebunden + ein paar Status Funktionen
Diffstat (limited to 'Plugins/UploadedTo.py')
-rw-r--r-- | Plugins/UploadedTo.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Plugins/UploadedTo.py b/Plugins/UploadedTo.py index fe2c3ec37..0d00c8aa6 100644 --- a/Plugins/UploadedTo.py +++ b/Plugins/UploadedTo.py @@ -8,6 +8,7 @@ from Plugin import Plugin class UploadedTo(Plugin): def __init__(self, parent): + Plugin.__init__(self, parent) self.plugin_name = "Uploaded.to" self.plugin_pattern = r"http://(www\.)?uploaded.to/" self.plugin_type = "hoster" @@ -37,7 +38,7 @@ class UploadedTo(Plugin): def download_html(self): url = self.parent.url - self.html = urllib2.urlopen(url).read() + self.html = req.load(url) try: wait_minutes = re.search(r"Or wait (\d+) minutes", self.html).group(1) |