summaryrefslogtreecommitdiffstats
path: root/Plugins/XupIn.py
diff options
context:
space:
mode:
authorGravatar cp1 <christopherpool1@googlemail.com> 2009-06-11 16:50:48 +0200
committerGravatar cp1 <christopherpool1@googlemail.com> 2009-06-11 16:50:48 +0200
commitfd6e286ee089cf75276f2581471aba254d69fcb5 (patch)
tree1f91e2063f3182d172d7c7f70c4fdb98b407a60b /Plugins/XupIn.py
parentadd wxversion selector to ensure wxWidgets 2.8 is used (diff)
downloadpyload-fd6e286ee089cf75276f2581471aba254d69fcb5.tar.xz
correcting false identation (tabs to spaces)
Diffstat (limited to 'Plugins/XupIn.py')
-rw-r--r--Plugins/XupIn.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/Plugins/XupIn.py b/Plugins/XupIn.py
index 21bcd3434..0f5c9a8b8 100644
--- a/Plugins/XupIn.py
+++ b/Plugins/XupIn.py
@@ -4,7 +4,7 @@ import re
from Plugin import Plugin
class XupIn(Plugin):
-
+
def __init__(self, parent):
Plugin.__init__(self, parent)
props = {}
@@ -23,24 +23,24 @@ class XupIn(Plugin):
self.posts = {}
self.want_reconnect = None
self.multi_dl = False
-
+
def download_html(self):
url = self.parent.url
self.html = self.req.load(url)
self.posts["vid"] = re.search('"hidden" value="(.*)" name="vid"', self.html).group(1)
self.posts["vtime"] = re.search('"hidden" value="(.*)" name="vtime"', self.html).group(1)
-
+
def get_file_url(self):
""" returns the absolute downloadable filepath
"""
if self.html == None:
self.download_html()
- if not self.want_reconnect:
+ if not self.want_reconnect:
file_url_pattern = r".*<form action=\"(.*)\" method=\"post\">"
return re.search(file_url_pattern, self.html).group(1)
else:
return False
-
+
def get_file_name(self):
if self.html == None:
self.download_html()
@@ -48,9 +48,9 @@ class XupIn(Plugin):
return self.parent.url.split('/')[-2]
else:
return self.parent.url
-
+
def file_exists(self):
- """ returns True or False
+ """ returns True or False
"""
if self.html == None:
self.download_html()