Browse Source

[bitchute] Fix uploader extraction (#21076)

master
Georgi Saev 6 years ago
committed by Sergey M
parent
commit
bbf1defe58
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      youtube_dl/extractor/bitchute.py

+ 3
- 2
youtube_dl/extractor/bitchute.py View File

@ -65,8 +65,9 @@ class BitChuteIE(InfoExtractor):
webpage, default=None) or self._html_search_meta( webpage, default=None) or self._html_search_meta(
'twitter:image:src', webpage, 'thumbnail') 'twitter:image:src', webpage, 'thumbnail')
uploader = self._html_search_regex( uploader = self._html_search_regex(
r'(?s)<p\b[^>]+\bclass=["\']video-author[^>]+>(.+?)</p>', webpage,
'uploader', fatal=False)
(r'(?s)<div class=["\']channel-banner.*?<p\b[^>]+\bclass=["\']name[^>]+>(.+?)</p>',
r'(?s)<p\b[^>]+\bclass=["\']video-author[^>]+>(.+?)</p>'),
webpage, 'uploader', fatal=False)
return { return {
'id': video_id, 'id': video_id,


Loading…
Cancel
Save