diff options
author | spoob <spoob@gmx.de> | 2009-09-04 15:13:57 +0200 |
---|---|---|
committer | spoob <spoob@gmx.de> | 2009-09-04 15:13:57 +0200 |
commit | 6b5d39a18461a45e53fd4048e1ac6a5cbd075b8c (patch) | |
tree | 12c44e446f2d82785572b2577a39a96e741c34a9 /Plugins/HoerbuchIn.py | |
parent | pyLoad RC (diff) | |
download | pyload-6b5d39a18461a45e53fd4048e1ac6a5cbd075b8c.tar.xz |
clean root folder
Diffstat (limited to 'Plugins/HoerbuchIn.py')
-rw-r--r-- | Plugins/HoerbuchIn.py | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/Plugins/HoerbuchIn.py b/Plugins/HoerbuchIn.py deleted file mode 100644 index 02d3a79e7..000000000 --- a/Plugins/HoerbuchIn.py +++ /dev/null @@ -1,48 +0,0 @@ -#!/usr/bin/env python -# -*- coding: utf-8 -*- - -import re - -from Plugin import Plugin - -class HoerbuchIn(Plugin): - - def __init__(self, parent): - Plugin.__init__(self, parent) - props = {} - props['name'] = "HoerbuchIn" - props['type'] = "container" - props['pattern'] = r"http://(www\.)?hoerbuch\.in/blog\.php\?id=" - props['version'] = "0.3" - props['description'] = """Hoerbuch.in Container Plugin""" - props['author_name'] = ("spoob") - props['author_mail'] = ("spoob@pyload.org") - self.props = props - self.parent = parent - self.html = None - - def download_html(self): - url = self.parent.url - self.html = self.req.load(url) - - def file_exists(self): - """ returns True or False - """ - self.download_html() - if re.search(r"Download", self.html) != None: - return True - return False - - def proceed(self, url, location): - temp_links = [] - download_container = ("Download", "Mirror #1", "Mirror #2", "Mirror #3") - for container in download_container: - download_content = re.search("<BR><B>" + container + ":</B>(.*?)<BR><B>", self.html).group(1) - tmp = re.findall('<A HREF="http://www.hoerbuch.in/cj/out.php\?pct=\d+&url=(http://rs\.hoerbuch\.in/.+?)" TARGET="_blank">Part \d+</A>', download_content) - if tmp == []: continue - for link in tmp: - link_html = self.req.load(link, cookies=True) - temp_links.append(re.search('<FORM ACTION="(http://.*?)" METHOD="post"', link_html).group(1)) - break - - self.links = temp_links |