diff options
author | Jesús <heckyel@hyperbola.info> | 2021-11-27 13:25:01 -0500 |
---|---|---|
committer | Jesús <heckyel@hyperbola.info> | 2021-11-27 13:25:01 -0500 |
commit | c6df1db4745c9d399204876bbe04e8a311c01df1 (patch) | |
tree | a9f4ffa1db45e367aba1de858ac536b761f192fb /yt_dlp/extractor/vlive.py | |
parent | 5bb25093eb718346ab8a723d2c04f0066fc3958a (diff) | |
parent | 93e597ba287539643851f0ad5c5ff04760380268 (diff) | |
download | hypervideo-pre-c6df1db4745c9d399204876bbe04e8a311c01df1.tar.lz hypervideo-pre-c6df1db4745c9d399204876bbe04e8a311c01df1.tar.xz hypervideo-pre-c6df1db4745c9d399204876bbe04e8a311c01df1.zip |
updated from upstream | 27/11/2021 at 13:25
Diffstat (limited to 'yt_dlp/extractor/vlive.py')
-rw-r--r-- | yt_dlp/extractor/vlive.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/yt_dlp/extractor/vlive.py b/yt_dlp/extractor/vlive.py index 4340b1d4c..8fccf1b63 100644 --- a/yt_dlp/extractor/vlive.py +++ b/yt_dlp/extractor/vlive.py @@ -12,6 +12,7 @@ from ..compat import ( from ..utils import ( ExtractorError, int_or_none, + LazyList, merge_dicts, str_or_none, strip_or_none, @@ -363,11 +364,10 @@ class VLiveChannelIE(VLiveBaseIE): if board.get('boardType') not in ('STAR', 'VLIVE_PLUS'): raise ExtractorError(f'Board {board_name!r} is not supported', expected=True) - entries = self._entries(posts_id or channel_id, board_name) - first_video = next(entries) - channel_name = first_video['channel'] + entries = LazyList(self._entries(posts_id or channel_id, board_name)) + channel_name = entries[0]['channel'] return self.playlist_result( - itertools.chain([first_video], entries), + entries, f'{channel_id}-{posts_id}' if posts_id else channel_id, f'{channel_name} - {board_name}' if channel_name and board_name else channel_name) |