From c0e4609ee1824a559a3c4cff728e6f7fd3428a47 Mon Sep 17 00:00:00 2001 From: Romain Bignon Date: Sat, 29 Jun 2013 20:31:45 +0200 Subject: [PATCH] fix parsing of author --- modules/dailymotion/pages.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/dailymotion/pages.py b/modules/dailymotion/pages.py index 81e8a256..2ef8abc7 100644 --- a/modules/dailymotion/pages.py +++ b/modules/dailymotion/pages.py @@ -94,7 +94,7 @@ class VideoPage(BasePage): div = self.parser.select(self.document.getroot(), 'div#content', 1) video.title = unicode(self.parser.select(div, 'span.title', 1).text).strip() - video.author = unicode(self.parser.select(div, 'a.name, span.name', 1).text).strip() + video.author = unicode(self.parser.select(div, 'a.name, span.name, a[rel=author]', 1).text).strip() try: video.description = html2text(self.parser.tostring(self.parser.select(div, 'div#video_description', 1))).strip() or unicode() except BrokenPageError: