From a8cfc154fc35edc16d10672712a6a3b36c6b9560 Mon Sep 17 00:00:00 2001 From: spoob Date: Fri, 5 Jun 2009 13:35:10 +0200 Subject: removed useless function get_parent_status --- Plugins/YoupornCom.py | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'Plugins/YoupornCom.py') diff --git a/Plugins/YoupornCom.py b/Plugins/YoupornCom.py index ff5ef67e3..f26d237f1 100644 --- a/Plugins/YoupornCom.py +++ b/Plugins/YoupornCom.py @@ -20,15 +20,6 @@ class YoupornCom(Plugin): self.html = None self.html_old = None #time() where loaded the HTML self.time_plus_wait = None #time() + wait in seconds - - def set_parent_status(self): - """ sets all available Statusinfos about a File in self.parent.status - """ - if self.html == None: - self.download_html() - self.parent.status.filename = self.get_file_name() - self.parent.status.url = self.get_file_url() - self.parent.status.wait = self.wait_until() def download_html(self): url = self.parent.url @@ -45,7 +36,6 @@ class YoupornCom(Plugin): def get_file_name(self): if self.html == None: self.download_html() - print "so far (name)" file_name_pattern = r"(.*) - Free Porn Videos - YouPorn.com Lite.*" return re.search(file_name_pattern, self.html).group(1) + '.flv' -- cgit v1.2.3