summaryrefslogtreecommitdiffstats
path: root/module/plugins
diff options
context:
space:
mode:
authorGravatar therazer <devnull@localhost> 2010-11-07 14:56:34 +0100
committerGravatar therazer <devnull@localhost> 2010-11-07 14:56:34 +0100
commit00097d7bdded9542a4ea1242814b4471c729e8eb (patch)
treeb862ca84c3bf46eb6506cf6f6f7d2c6f96c1bfc0 /module/plugins
parentadding dl.free.fr (diff)
downloadpyload-00097d7bdded9542a4ea1242814b4471c729e8eb.tar.xz
... just forgot something
Diffstat (limited to 'module/plugins')
-rw-r--r--module/plugins/hoster/DlFreeFr.py13
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")