diff options
author | therazer <devnull@localhost> | 2010-11-07 14:56:34 +0100 |
---|---|---|
committer | therazer <devnull@localhost> | 2010-11-07 14:56:34 +0100 |
commit | 00097d7bdded9542a4ea1242814b4471c729e8eb (patch) | |
tree | b862ca84c3bf46eb6506cf6f6f7d2c6f96c1bfc0 | |
parent | adding dl.free.fr (diff) | |
download | pyload-00097d7bdded9542a4ea1242814b4471c729e8eb.tar.xz |
... just forgot something
-rw-r--r-- | module/plugins/hoster/DlFreeFr.py | 13 |
1 files changed, 13 insertions, 0 deletions
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:</td>\s*<td.*>(?P<name>.*?)</td>" + 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") |