From 53f669364f664b511b9b8edf8d353f93d6565ae1 Mon Sep 17 00:00:00 2001 From: smege1001 Date: Thu, 2 Apr 2020 03:38:34 +0100 Subject: [PATCH] [bannedvideo] Fixed livestream and added extractor to extractors.py --- youtube_dl/extractor/bannedvideo.py | 2 +- youtube_dl/extractor/extractors.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/youtube_dl/extractor/bannedvideo.py b/youtube_dl/extractor/bannedvideo.py index c269de16e..8f9a80c5a 100644 --- a/youtube_dl/extractor/bannedvideo.py +++ b/youtube_dl/extractor/bannedvideo.py @@ -175,7 +175,7 @@ fragment VideoComment on Comment { if is_live: formats = [] - formats.append(self._extract_m3u8_formats(video_info.get('streamUrl'), video_id, entry_protocol='hls', live=True)) + formats.extend(self._extract_m3u8_formats(video_info.get('streamUrl'), video_id, 'mp4', entry_protocol='m3u8_native', m3u8_id='hls', live=True)) metadata['formats'] = formats else: metadata['url'] = video_info.get('directUrl') diff --git a/youtube_dl/extractor/extractors.py b/youtube_dl/extractor/extractors.py index ef803b8a7..4f4e7dba7 100644 --- a/youtube_dl/extractor/extractors.py +++ b/youtube_dl/extractor/extractors.py @@ -81,6 +81,7 @@ from .awaan import ( from .azmedien import AZMedienIE from .baidu import BaiduVideoIE from .bandcamp import BandcampIE, BandcampAlbumIE, BandcampWeeklyIE +from .bannedvideo import BannedVideoIE from .bbc import ( BBCCoUkIE, BBCCoUkArticleIE,