From ed3c952f3419524e57661c0c43bcbe4a7c01027d Mon Sep 17 00:00:00 2001 From: Mort Yao Date: Wed, 18 Oct 2017 11:53:16 +0200 Subject: [PATCH] [bilibili] fail fast, but not too fast (close #2437) --- src/you_get/extractors/bilibili.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/you_get/extractors/bilibili.py b/src/you_get/extractors/bilibili.py index 4642a621..73f82817 100644 --- a/src/you_get/extractors/bilibili.py +++ b/src/you_get/extractors/bilibili.py @@ -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: