mirror of
https://codeberg.org/polarisfm/youtube-dl
synced 2024-11-22 16:44:32 +01:00
[bannedvideo] Fixed livestream and added extractor to extractors.py
This commit is contained in:
parent
ca8d548ee3
commit
53f669364f
@ -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')
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user