From a2ca1197892079e410f4056964d52ac4d723f05c Mon Sep 17 00:00:00 2001 From: lcjh <120989324@qq.com> Date: Fri, 8 Apr 2022 02:48:36 +0800 Subject: [PATCH] clear stream info --- src/you_get/extractors/bilibili.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/you_get/extractors/bilibili.py b/src/you_get/extractors/bilibili.py index 49334d5b..c61a0567 100644 --- a/src/you_get/extractors/bilibili.py +++ b/src/you_get/extractors/bilibili.py @@ -141,6 +141,8 @@ class Bilibili(VideoExtractor): def prepare(self, **kwargs): self.stream_qualities = {s['quality']: s for s in self.stream_types} + self.streams.clear() + self.dash_streams.clear() try: html_content = get_content(self.url, headers=self.bilibili_headers(referer=self.url))