From d4246353df6470e24d870dab8532a905e853601e Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 31 Jan 2013 02:01:25 +0100 Subject: stream: set default HTTP user agent to "Mozilla/5.0" Playing vimeo links using quvi support didn't work, even though clive could. clive is using quvi and curl to download videos from streaming sites, so if clive works mpv should always work as well. It didn't, and it turned out that it was due to the user agent. Change the default from whatever Lavf sends to what clive and cclive use. This will probably always work, as c(c)live are by the same author as libquvi, and there's a high chance it has been tested with all the supported sites. --- stream/network.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stream/network.c b/stream/network.c index d48444faa6..3c0e710c83 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=NULL; +char *network_useragent="Mozilla/5.0"; char *network_referrer=NULL; char **network_http_header_fields=NULL; -- cgit v1.2.3