fix: use fake ua

This commit is contained in:
nuomi1 2022-10-05 01:23:32 +08:00
parent af3468fa05
commit f4e36b3667
No known key found for this signature in database
GPG Key ID: E410D5FF602FBF25

View File

@ -310,7 +310,7 @@ class MissEvan(VideoExtractor):
or kwargs.get('json_output'):
for _, stream in self.streams.items():
stream['size'] = urls_size(stream['src'])
stream['size'] = urls_size(stream['src'], faker=True)
return
# fetch size of the selected stream only
@ -319,7 +319,7 @@ class MissEvan(VideoExtractor):
stream = self.streams[stream_id]
if 'size' not in stream:
stream['size'] = urls_size(stream['src'])
stream['size'] = urls_size(stream['src'], faker=True)
def _get_content(self, url):
return get_content(url, headers=self.__headers)