diff --git a/youtube_dl/extractor/bitchute.py b/youtube_dl/extractor/bitchute.py index 430663fbf..6d5334647 100644 --- a/youtube_dl/extractor/bitchute.py +++ b/youtube_dl/extractor/bitchute.py @@ -8,6 +8,7 @@ from .common import InfoExtractor from ..utils import ( orderedSet, urlencode_postdata, + unified_strdate, ) @@ -23,6 +24,7 @@ class BitChuteIE(InfoExtractor): 'description': 'md5:3f21f6fb5b1d17c3dee9cf6b5fe60b3a', 'thumbnail': r're:^https?://.*\.jpg$', 'uploader': 'Victoria X Rave', + 'upload_date': '20170813', }, }, { 'url': 'https://www.bitchute.com/embed/lbb5G1hjPhw/', @@ -74,6 +76,11 @@ class BitChuteIE(InfoExtractor): r'(?s)]+\bclass=["\']video-author[^>]+>(.+?)

'), webpage, 'uploader', fatal=False) + upload_date = self._html_search_regex( + r'(?s)class="video-publish-date.*?>.*?First published at [0-9]+:[0-9]+ UTC on (.*?)\..*?', + webpage, 'upload_date', fatal=False) + upload_date = unified_strdate(upload_date) + return { 'id': video_id, 'title': title, @@ -81,6 +88,7 @@ class BitChuteIE(InfoExtractor): 'thumbnail': thumbnail, 'uploader': uploader, 'formats': formats, + 'upload_date': upload_date, }