mirror of
https://github.com/soimort/you-get.git
synced 2025-02-03 16:53:56 +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)
|
self.parse_bili_xml(api_xml)
|
||||||
|
|
||||||
def prepare(self, **kwargs):
|
def prepare(self, **kwargs):
|
||||||
socket.setdefaulttimeout(1) # fail fast, very speedy!
|
socket.setdefaulttimeout(2) # fail fast, very speedy!
|
||||||
|
|
||||||
# handle "watchlater" URLs
|
# handle "watchlater" URLs
|
||||||
if '/watchlater/' in self.url:
|
if '/watchlater/' in self.url:
|
||||||
|
Loading…
Reference in New Issue
Block a user