summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorSergey M․ <[email protected]>2019-06-07 22:58:19 +0700
committerSergey M․ <[email protected]>2019-06-07 22:58:19 +0700
commit4c78c3d70086f9f8ea7ddcf8896065443c6dc37b (patch)
tree975b46294947e8aa748a26206658884391fc1c28
parent2e11e51c041bd95dd1305af5b958abacc27f39f7 (diff)
downloadyoutube-dl-4c78c3d70086f9f8ea7ddcf8896065443c6dc37b.tar.gz
youtube-dl-4c78c3d70086f9f8ea7ddcf8896065443c6dc37b.zip
[bitchute] Extract HTML5 formats (closes #21306)
-rw-r--r--youtube_dl/extractor/bitchute.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/youtube_dl/extractor/bitchute.py b/youtube_dl/extractor/bitchute.py
index 1d69dafbd..430663fbf 100644
--- a/youtube_dl/extractor/bitchute.py
+++ b/youtube_dl/extractor/bitchute.py
@@ -55,6 +55,11 @@ class BitChuteIE(InfoExtractor):
formats = [
{'url': format_url}
for format_url in orderedSet(format_urls)]
+
+ if not formats:
+ formats = self._parse_html5_media_entries(
+ url, webpage, video_id)[0]['formats']
+
self._check_formats(formats, video_id)
self._sort_formats(formats)