summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar mkaay <mkaay@mkaay.de> 2009-11-16 18:32:37 +0100
committerGravatar mkaay <mkaay@mkaay.de> 2009-11-16 18:32:37 +0100
commit737345718371b5faae703b7ed3f4e9725abf5158 (patch)
tree1602b5a7ecf8f37d76546287eb4a405ac4ddf1e9
parentrelink.us fix (diff)
downloadpyload-737345718371b5faae703b7ed3f4e9725abf5158.tar.xz
indentation fix
-rw-r--r--module/plugins/RelinkUs.py36
1 files changed, 18 insertions, 18 deletions
diff --git a/module/plugins/RelinkUs.py b/module/plugins/RelinkUs.py
index 840497413..9ca209be3 100644
--- a/module/plugins/RelinkUs.py
+++ b/module/plugins/RelinkUs.py
@@ -34,28 +34,28 @@ class RelinkUs(Plugin):
self.html = self.req.load(url, cookies=True)
temp_links = []
- # Download Ad-Frames, otherwise we aren't enabled for download
- iframes = re.findall("src=['\"]([^'\"]*)['\"](.*)></iframe>", self.html)
- for iframe in iframes:
- self.req.load("http://relink.us/"+iframe[0], cookies=True)
+ # Download Ad-Frames, otherwise we aren't enabled for download
+ iframes = re.findall("src=['\"]([^'\"]*)['\"](.*)></iframe>", self.html)
+ for iframe in iframes:
+ self.req.load("http://relink.us/"+iframe[0], cookies=True)
- link_strings = re.findall(r"onclick=\"getFile\(\'([^)]*)\'\);changeBackgroundColor", self.html)
+ link_strings = re.findall(r"onclick=\"getFile\(\'([^)]*)\'\);changeBackgroundColor", self.html)
- for link_string in link_strings:
- self.req.lastURL = url
+ for link_string in link_strings:
+ self.req.lastURL = url
- # Set Download File
- framereq = self.req.load("http://relink.us/frame.php?"+link_string, cookies=True)
+ # Set Download File
+ framereq = self.req.load("http://relink.us/frame.php?"+link_string, cookies=True)
- new_link = self.req.lastEffectiveURL
+ new_link = self.req.lastEffectiveURL
- if re.match(r"http://(www\.)?relink.us/",new_link):
- # Find iframe
- new_link = re.search("src=['\"]([^'\"]*)['\"](.*)></iframe>", framereq).group(1)
- # Wait some secs for relink.us server...
- time.sleep(5)
+ if re.match(r"http://(www\.)?relink.us/",new_link):
+ # Find iframe
+ new_link = re.search("src=['\"]([^'\"]*)['\"](.*)></iframe>", framereq).group(1)
+ # Wait some secs for relink.us server...
+ time.sleep(5)
- print new_link
- temp_links.append(new_link)
+ print new_link
+ temp_links.append(new_link)
- self.links = temp_links
+ self.links = temp_links