From fd6e286ee089cf75276f2581471aba254d69fcb5 Mon Sep 17 00:00:00 2001
From: cp1
Date: Thu, 11 Jun 2009 16:50:48 +0200
Subject: correcting false identation (tabs to spaces)
---
Plugins/RapidshareCom.py | 26 +++++++++++++-------------
1 file changed, 13 insertions(+), 13 deletions(-)
(limited to 'Plugins/RapidshareCom.py')
diff --git a/Plugins/RapidshareCom.py b/Plugins/RapidshareCom.py
index 362c2cf73..f7b981e37 100644
--- a/Plugins/RapidshareCom.py
+++ b/Plugins/RapidshareCom.py
@@ -8,7 +8,7 @@ from time import time
from Plugin import Plugin
class RapidshareCom(Plugin):
-
+
def __init__(self, parent):
Plugin.__init__(self, parent)
props = {}
@@ -41,10 +41,10 @@ class RapidshareCom(Plugin):
self.parent.status.filename = self.get_file_name()
self.parent.status.url = self.get_file_url()
self.parent.status.waituntil = self.wait_until()
-
+
def download_html(self):
""" gets the url from self.parent.url saves html in self.html and parses
- """
+ """
url = self.parent.url
html = self.req.load(url)
self.html[0] = html
@@ -59,7 +59,7 @@ class RapidshareCom(Plugin):
self.download_html()
if self.config['premium']:
- return False
+ return False
file_server_url = re.search(r"
)", self.html[0]) or \
re.search(r"(.*is momentarily not available.*)", self.html[0]) or \
re.search(r"(.*The uploader has removed this file from the server.*)", self.html[0]) or \
- re.search(r"(.*This file is suspected to contain illegal content.*)", self.html[0]):
- return False
+ re.search(r"(.*This file is suspected to contain illegal content.*)", self.html[0]):
+ return False
else:
return True
@@ -120,17 +120,17 @@ class RapidshareCom(Plugin):
return re.search(file_url_pattern, self.html[1]).group(1)
else:
return False
-
+
def get_file_name(self):
if self.html[0] == None:
self.download_html()
file_name_pattern = r".+/(.+)