Update bitchute.py

This commit is contained in:
Sergey M 2019-11-27 00:19:08 +07:00 committed by GitHub
parent 8267f2fa90
commit a48d79f2fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -76,10 +76,9 @@ class BitChuteIE(InfoExtractor):
r'(?s)<p\b[^>]+\bclass=["\']video-author[^>]+>(.+?)</p>'),
webpage, 'uploader', fatal=False)
upload_date = self._html_search_regex(
r'(?s)class=["\']video-publish-date.*?>\W*First published at [0-9]+:[0-9]+ UTC on (.*?)\.\W*</div>',
webpage, 'upload_date', fatal=False)
upload_date = unified_strdate(upload_date)
upload_date = unified_strdate(self._search_regex(
r'class=["\']video-publish-date[^>]+>[^<]+ at \d+:\d+ UTC on (.+?)\.',
webpage, 'upload date', fatal=False))
return {
'id': video_id,