diff options
Diffstat (limited to 'module/plugins/hoster/YourfilesTo.py')
-rw-r--r-- | module/plugins/hoster/YourfilesTo.py | 16 |
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 |