From e07742dd06f1e34a39e02c5cdd917a26e4410ece Mon Sep 17 00:00:00 2001 From: spoob Date: Mon, 24 Aug 2009 14:51:41 +0200 Subject: Fixed Hoerbuch.in Plugin --- Plugins/HoerbuchIn.py | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) (limited to 'Plugins') diff --git a/Plugins/HoerbuchIn.py b/Plugins/HoerbuchIn.py index d318f1927..4dd01dac3 100644 --- a/Plugins/HoerbuchIn.py +++ b/Plugins/HoerbuchIn.py @@ -30,16 +30,14 @@ class HoerbuchIn(Plugin): url = self.parent.url html = self.req.load(url) temp_links = [] - download_content = re.search("
Download:(.*?)
", html).group(1) - tmp = re.findall('Part \d+', download_content) - - for link in tmp: - for i in range(5): + download_container = ("Download", "Mirror #1", "Mirror #2", "Mirror #3") + for container in download_container: + download_content = re.search("
" + container + ":(.*?)
", html).group(1) + tmp = re.findall('Part \d+', download_content) + if tmp == []: continue + for link in tmp: link_html = self.req.load(link, cookies=True) - link_name = link.split("/")[-1] - if re.search("(.*)", link_html).group(1) == link_name: - link_url = re.search('