Browse Source

[nfb] Fix uploader extraction

totalwebcasting
Sergey M․ 9 years ago
parent
commit
15cda1ef77
No known key found for this signature in database GPG Key ID: 2C393E0F18A9236D
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      youtube_dl/extractor/nfb.py

+ 1
- 2
youtube_dl/extractor/nfb.py View 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,


Loading…
Cancel
Save