diff options
| author | 2009-11-16 18:38:16 +0100 | |
|---|---|---|
| committer | 2009-11-16 18:38:16 +0100 | |
| commit | 20a3ae56f5eea95a0f9641eabb273e0410fe2309 (patch) | |
| tree | ce15870d2057b428cc4e774bd2e0a2eb0b9eb732 /module | |
| parent | indentation fix (diff) | |
| download | pyload-20a3ae56f5eea95a0f9641eabb273e0410fe2309.tar.xz | |
indentation fix, 2nd try -.-
Diffstat (limited to 'module')
| -rw-r--r-- | module/plugins/RelinkUs.py | 36 | 
1 files changed, 18 insertions, 18 deletions
| diff --git a/module/plugins/RelinkUs.py b/module/plugins/RelinkUs.py index 9ca209be3..1700beb2b 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 | 
