aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder/pcm_decoder_plugin.h
diff options
context:
space:
mode:
authorIan Zimmerman <itz@buug.org>2011-01-29 08:43:30 +0100
committerMax Kellermann <max@duempel.org>2011-01-29 08:43:30 +0100
commit27aa34d4aed3cbc1778423dbd3563285d6de626a (patch)
tree062e6aaf2cc978d925e1dacb59132319a99c482d /src/decoder/pcm_decoder_plugin.h
parent79e0db4ca0e9c13ca226c06c9228d5afb4c9a277 (diff)
downloadmpd-27aa34d4aed3cbc1778423dbd3563285d6de626a.tar.gz
mpd-27aa34d4aed3cbc1778423dbd3563285d6de626a.tar.xz
mpd-27aa34d4aed3cbc1778423dbd3563285d6de626a.zip
input/curl: enable CURLOPT_NETRC
I wanted mpd to play a mp3 stream from a music website. The stream is only available to subscribers, which restriction is enforced through normal http authentication. However, the URL I get from the website is not the final URL of the stream, but a generic URL which points to the real one through a redirect (code 301). Thus, I cannot predict the final URL, and so I cannot use the username:password hack to force the authentication, and mpd (libcurl on mpds behalf) fails to grab the stream. libcurl allows the option CURLOPT_NETRC to be set and then the credentials can be stored in the good old .netrc file (in this case it would be ~mpd/.netrc, of course). But mpd doesn't set this option. I think it should.
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions