From ec5d49bd97f0324cdcdbd425ec0b9b0f796daa95 Mon Sep 17 00:00:00 2001 From: Javan Zhu Date: Fri, 22 Feb 2019 20:51:04 +0800 Subject: [PATCH] Update download user agent to improve successful rate of downloading mp3 file. --- addons21/fastwq/service/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons21/fastwq/service/base.py b/addons21/fastwq/service/base.py index e593308..bcdac12 100644 --- a/addons21/fastwq/service/base.py +++ b/addons21/fastwq/service/base.py @@ -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