diff options
author | wm4 <wm4@nowhere> | 2013-01-31 02:01:25 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-01-31 02:01:25 +0100 |
commit | d4246353df6470e24d870dab8532a905e853601e (patch) | |
tree | 7d0be5e335042ac2d623d679ffb74e42b311314a | |
parent | 6469322c5ac40730990763d13491b3ee822e7a06 (diff) | |
download | mpv-d4246353df6470e24d870dab8532a905e853601e.tar.bz2 mpv-d4246353df6470e24d870dab8532a905e853601e.tar.xz |
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.
-rw-r--r-- | stream/network.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |