Merge branch 'patch-2' of https://github.com/ljhcage/you-get into ljhcage-patch-2

This commit is contained in:
Mort Yao 2022-04-19 16:14:05 +02:00
commit a9b211b0a5
No known key found for this signature in database
GPG Key ID: 07DA00CB78203251

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