Update download user agent to improve successful rate of downloading mp3 file.

This commit is contained in:
Javan Zhu 2019-02-22 20:51:04 +08:00
parent 4047a5a169
commit ec5d49bd97

View File

@ -370,7 +370,7 @@ class WebService(Service):
be added onto the stream returned. This is helpful for some web
services that sometimes return MP3s that `mplayer` clips early.
"""
DEFAULT_UA = 'Mozilla/5.0'
DEFAULT_UA = 'Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.67 Safari/537.36'
DEFAULT_TIMEOUT = 3
PADDING = '\0' * 2**11