Skip to content

Commit

Permalink
[bilibili] fail fast, but not too fast (close #2437)
Browse files Browse the repository at this point in the history
  • Loading branch information
soimort committed Oct 18, 2017
1 parent c2de0bd commit ed3c952
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/you_get/extractors/bilibili.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def download_by_vid(self, cid, bangumi, **kwargs):
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:
Expand Down

0 comments on commit ed3c952

Please sign in to comment.