mirror of
https://github.com/soimort/you-get.git
synced 2025-01-23 21:45:02 +03:00
fix: use fake ua
This commit is contained in:
parent
af3468fa05
commit
f4e36b3667
@ -310,7 +310,7 @@ class MissEvan(VideoExtractor):
|
|||||||
or kwargs.get('json_output'):
|
or kwargs.get('json_output'):
|
||||||
|
|
||||||
for _, stream in self.streams.items():
|
for _, stream in self.streams.items():
|
||||||
stream['size'] = urls_size(stream['src'])
|
stream['size'] = urls_size(stream['src'], faker=True)
|
||||||
return
|
return
|
||||||
|
|
||||||
# fetch size of the selected stream only
|
# fetch size of the selected stream only
|
||||||
@ -319,7 +319,7 @@ class MissEvan(VideoExtractor):
|
|||||||
|
|
||||||
stream = self.streams[stream_id]
|
stream = self.streams[stream_id]
|
||||||
if 'size' not in stream:
|
if 'size' not in stream:
|
||||||
stream['size'] = urls_size(stream['src'])
|
stream['size'] = urls_size(stream['src'], faker=True)
|
||||||
|
|
||||||
def _get_content(self, url):
|
def _get_content(self, url):
|
||||||
return get_content(url, headers=self.__headers)
|
return get_content(url, headers=self.__headers)
|
||||||
|
Loading…
Reference in New Issue
Block a user