clear stream info

This commit is contained in:
lcjh 2022-04-08 02:48:36 +08:00 committed by GitHub
parent 699391135b
commit a2ca119789
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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