summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/YourfilesTo.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-10-23 13:29:12 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-10-23 13:29:12 +0200
commitc9b42f02f83a95d7741eee96247466d3b610b159 (patch)
treeba642be8eeb25233e83763aab2aa6227b31c7885 /module/plugins/hoster/YourfilesTo.py
parent[Dereferer] Don't preload (diff)
downloadpyload-c9b42f02f83a95d7741eee96247466d3b610b159.tar.xz
self.html -> self.data
Diffstat (limited to 'module/plugins/hoster/YourfilesTo.py')
-rw-r--r--module/plugins/hoster/YourfilesTo.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/module/plugins/hoster/YourfilesTo.py b/module/plugins/hoster/YourfilesTo.py
index b5aca71cc..aea4e8b7a 100644
--- a/module/plugins/hoster/YourfilesTo.py
+++ b/module/plugins/hoster/YourfilesTo.py
@@ -37,11 +37,11 @@ class YourfilesTo(Hoster):
def get_waiting_time(self):
- if not self.html:
+ if not self.data:
self.download_html()
#: var zzipitime = 15
- m = re.search(r'var zzipitime = (\d+);', self.html)
+ m = re.search(r'var zzipitime = (\d+);', self.data)
if m is not None:
sec = int(m.group(1))
else:
@@ -52,14 +52,14 @@ class YourfilesTo(Hoster):
def download_html(self):
url = self.pyfile.url
- self.html = self.load(url)
+ self.data = self.load(url)
def get_file_url(self):
"""
Returns the absolute downloadable filepath
"""
- url = re.search(r"var bla = '(.*?)';", self.html)
+ url = re.search(r"var bla = '(.*?)';", self.data)
if url:
url = url.group(1)
url = urllib.unquote(url.replace("http://http:/http://", "http://").replace("dumdidum", ""))
@@ -69,20 +69,20 @@ class YourfilesTo(Hoster):
def get_file_name(self):
- if not self.html:
+ if not self.data:
self.download_html()
- return re.search("<title>(.*)</title>", self.html).group(1)
+ return re.search("<title>(.*)</title>", self.data).group(1)
def file_exists(self):
"""
Returns True or False
"""
- if not self.html:
+ if not self.data:
self.download_html()
- if re.search(r"HTTP Status 404", self.html):
+ if re.search(r"HTTP Status 404", self.data):
return False
else:
return True