From 00097d7bdded9542a4ea1242814b4471c729e8eb Mon Sep 17 00:00:00 2001 From: therazer Date: Sun, 7 Nov 2010 14:56:34 +0100 Subject: ... just forgot something --- module/plugins/hoster/DlFreeFr.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'module/plugins/hoster') diff --git a/module/plugins/hoster/DlFreeFr.py b/module/plugins/hoster/DlFreeFr.py index 91b4928a1..8ab9dd8eb 100644 --- a/module/plugins/hoster/DlFreeFr.py +++ b/module/plugins/hoster/DlFreeFr.py @@ -58,3 +58,16 @@ class DlFreeFr(Hoster): else: self.log.debug(self.__name__+": Error getting URL") return False + + def get_file_name(self): + self.log.debug(self.__name__+": Getting file name") + + file_name_pattern = r"Fichier:\s*(?P.*?)" + m = re.search(file_name_pattern, self.html) + + if m is not None: + name = m.group('name').strip() + self.log.debug(self.__name__+": File name [%s]" % name) + return name + else: + self.log.debug(self.__name__+": Could not find filename") -- cgit v1.2.3