[nfb] Fix uploader extraction
authorSergey M․ <dstftw@gmail.com>
Tue, 17 May 2016 17:46:47 +0000 (23:46 +0600)
committerSergey M․ <dstftw@gmail.com>
Tue, 17 May 2016 17:46:47 +0000 (23:46 +0600)
youtube_dl/extractor/nfb.py

index 51e4a34f789f0e7e9dff2eeb9ec839e655632c75..234e490476941822f6499bae7dc4c93aaf865614 100644 (file)
@@ -37,8 +37,7 @@ class NFBIE(InfoExtractor):
 
         uploader_id = self._html_search_regex(r'<a class="director-link" href="/explore-all-directors/([^/]+)/"',
                                               page, 'director id', fatal=False)
-        uploader = self._html_search_regex(r'<em class="director-name" itemprop="name">([^<]+)</em>',
-                                           page, 'director name', fatal=False)
+        uploader = self._og_search_property('video:director', page, 'director name')
 
         request = sanitized_Request(
             'https://www.nfb.ca/film/%s/player_config' % video_id,