mirror of
https://github.com/soimort/you-get.git
synced 2025-01-24 05:55:02 +03:00
[bilibili] fail fast, but not too fast (close #2437)
This commit is contained in:
parent
c2de0bdc38
commit
ed3c952f34
@ -104,7 +104,7 @@ class Bilibili(VideoExtractor):
|
||||
self.parse_bili_xml(api_xml)
|
||||
|
||||
def prepare(self, **kwargs):
|
||||
socket.setdefaulttimeout(1) # fail fast, very speedy!
|
||||
socket.setdefaulttimeout(2) # fail fast, very speedy!
|
||||
|
||||
# handle "watchlater" URLs
|
||||
if '/watchlater/' in self.url:
|
||||
|
Loading…
Reference in New Issue
Block a user