mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-16 02:03:07 -07:00
Changes in User-Agent
This commit is contained in:
parent
8897001567
commit
ad2a18b3bc
4 changed files with 6 additions and 7 deletions
|
@ -36,7 +36,7 @@ import socks
|
|||
import re
|
||||
|
||||
# Some sites blocks default python User-agent
|
||||
user_agent = 'Mozilla/5.0'
|
||||
user_agent = 'Mozilla/5.0 (X11; Linux i686; rv:38.0) Gecko/20100101 Firefox/38.0'
|
||||
headers = {'User-Agent': user_agent}
|
||||
# SOCKS5 Proxy support
|
||||
if os.environ.has_key("sock_proxy") and len(os.environ["sock_proxy"].strip()) > 0:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue