From de49cdbe9d37a66b05bb73292cfba031847386dc Mon Sep 17 00:00:00 2001 From: Yifu Yu Date: Thu, 1 Sep 2022 01:52:16 +0800 Subject: [PATCH] [extractor/bilibili] Extract `flac` with premium account (#4759) Authored by: jackyyf --- yt_dlp/extractor/bilibili.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/yt_dlp/extractor/bilibili.py b/yt_dlp/extractor/bilibili.py index 17c974d49..59f5791d1 100644 --- a/yt_dlp/extractor/bilibili.py +++ b/yt_dlp/extractor/bilibili.py @@ -218,6 +218,9 @@ class BiliBiliIE(InfoExtractor): durl = traverse_obj(video_info, ('dash', 'video')) audios = traverse_obj(video_info, ('dash', 'audio')) or [] + flac_audio = traverse_obj(video_info, ('dash', 'flac', 'audio')) + if flac_audio: + audios.append(flac_audio) entries = [] RENDITIONS = ('qn=80&quality=80&type=', 'quality=2&type=mp4')