Merge 80f7dfce93
into d65d89183f
This commit is contained in:
commit
268dc85188
|
@ -8,6 +8,7 @@ from .common import InfoExtractor
|
|||
from ..utils import (
|
||||
orderedSet,
|
||||
unified_strdate,
|
||||
unified_timestamp,
|
||||
urlencode_postdata,
|
||||
)
|
||||
|
||||
|
@ -15,16 +16,17 @@ from ..utils import (
|
|||
class BitChuteIE(InfoExtractor):
|
||||
_VALID_URL = r'https?://(?:www\.)?bitchute\.com/(?:video|embed|torrent/[^/]+)/(?P<id>[^/?#&]+)'
|
||||
_TESTS = [{
|
||||
'url': 'https://www.bitchute.com/video/szoMrox2JEI/',
|
||||
'md5': '66c4a70e6bfc40dcb6be3eb1d74939eb',
|
||||
'url': 'https://www.bitchute.com/video/mxzcCZI0RQ0k/',
|
||||
'md5': '94e5c980ffdb450e72a8ed55f2e9280b',
|
||||
'info_dict': {
|
||||
'id': 'szoMrox2JEI',
|
||||
'id': 'mxzcCZI0RQ0k',
|
||||
'ext': 'mp4',
|
||||
'title': 'Fuck bitches get money',
|
||||
'description': 'md5:3f21f6fb5b1d17c3dee9cf6b5fe60b3a',
|
||||
'title': 'Some People are just Glitches in the Matrix',
|
||||
'description': 'md5:46cc1f8670f6da35fec011bb1d1e548e',
|
||||
'thumbnail': r're:^https?://.*\.jpg$',
|
||||
'uploader': 'Victoria X Rave',
|
||||
'upload_date': '20170813',
|
||||
'uploader': 'stargods',
|
||||
'upload_date': '20200218',
|
||||
'timestamp': 1582066500,
|
||||
},
|
||||
}, {
|
||||
'url': 'https://www.bitchute.com/embed/lbb5G1hjPhw/',
|
||||
|
@ -80,6 +82,10 @@ class BitChuteIE(InfoExtractor):
|
|||
r'class=["\']video-publish-date[^>]+>[^<]+ at \d+:\d+ UTC on (.+?)\.',
|
||||
webpage, 'upload date', fatal=False))
|
||||
|
||||
timestamp = unified_timestamp('-'.join([upload_date[:4], upload_date[4:6], upload_date[6:]]) + ' ' + self._search_regex(
|
||||
r'class=["\']video-publish-date[^>]+>[^<]+ (\d+:\d+ UTC) on',
|
||||
webpage, 'timestamp', fatal=False))
|
||||
|
||||
return {
|
||||
'id': video_id,
|
||||
'title': title,
|
||||
|
@ -88,16 +94,17 @@ class BitChuteIE(InfoExtractor):
|
|||
'uploader': uploader,
|
||||
'upload_date': upload_date,
|
||||
'formats': formats,
|
||||
'timestamp': timestamp,
|
||||
}
|
||||
|
||||
|
||||
class BitChuteChannelIE(InfoExtractor):
|
||||
_VALID_URL = r'https?://(?:www\.)?bitchute\.com/channel/(?P<id>[^/?#&]+)'
|
||||
_TEST = {
|
||||
'url': 'https://www.bitchute.com/channel/victoriaxrave/',
|
||||
'playlist_mincount': 185,
|
||||
'url': 'https://www.bitchute.com/channel/stargods/',
|
||||
'playlist_mincount': 50,
|
||||
'info_dict': {
|
||||
'id': 'victoriaxrave',
|
||||
'id': 'stargods',
|
||||
},
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue