summaryrefslogtreecommitdiffstats
path: root/stream
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-02-24 21:53:51 +0100
committerwm4 <wm4@nowhere>2013-02-26 01:55:52 +0100
commitf47ead1509bd63785a0b6deb67e05e02b56fc474 (patch)
tree204738866e9ca4bd4d728d5faa5f02196d0ff381 /stream
parent2254416a5d58ba38bee21f11083f135aabe4e926 (diff)
downloadmpv-f47ead1509bd63785a0b6deb67e05e02b56fc474.tar.bz2
mpv-f47ead1509bd63785a0b6deb67e05e02b56fc474.tar.xz
network: set default user-agent to MPlayer's
SHOUTcast bans "Mozilla" in the user-agent, Vimeo bans "Lavf" (part of the libavformat normal user-agent). "MPlayer 1.1-..." seems to work everywhere, and is close to the intented use (mpv is based on MPlayer, after all).
Diffstat (limited to 'stream')
-rw-r--r--stream/network.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stream/network.c b/stream/network.c
index 3c0e710c83..371b7f52cd 100644
--- a/stream/network.c
+++ b/stream/network.c
@@ -54,7 +54,7 @@ char *network_username=NULL;
char *network_password=NULL;
int network_bandwidth=0;
int network_cookies_enabled = 0;
-char *network_useragent="Mozilla/5.0";
+char *network_useragent="MPlayer 1.1-4.7";
char *network_referrer=NULL;
char **network_http_header_fields=NULL;