1
0
mirror of https://codeberg.org/polarisfm/youtube-dl synced 2024-11-26 10:24:33 +01:00

[bannedvideo] Fixed livestream and added extractor to extractors.py

This commit is contained in:
smege1001 2020-04-02 03:38:34 +01:00
parent ca8d548ee3
commit 53f669364f
2 changed files with 2 additions and 1 deletions

View File

@ -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')

View File

@ -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,