[bilibili] fail fast, but not too fast (close #2437)

This commit is contained in:
Mort Yao 2017-10-18 11:53:16 +02:00
parent c2de0bdc38
commit ed3c952f34
No known key found for this signature in database
GPG Key ID: 07DA00CB78203251

View File

@ -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: