diff options
author | Lars-Dominik Braun <PromyLOPh@gmail.com> | 2008-06-19 17:10:02 +0200 |
---|---|---|
committer | Lars-Dominik Braun <PromyLOPh@gmail.com> | 2008-06-19 17:10:02 +0200 |
commit | f6e8245458cb0d32609b64c37e1d0e3ab7d8b741 (patch) | |
tree | 55352bdeb683a5cedc6d58c909d1ce6f1f762e2d /src/main.c | |
parent | cc038afd9d9cca3c7eb50b71d133da73fa39f8af (diff) | |
download | pianobar-f6e8245458cb0d32609b64c37e1d0e3ab7d8b741.tar.gz pianobar-f6e8245458cb0d32609b64c37e1d0e3ab7d8b741.tar.bz2 pianobar-f6e8245458cb0d32609b64c37e1d0e3ab7d8b741.zip |
Showing real face now.
User agent is now PACKAGE_STRING
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -36,6 +36,7 @@ THE SOFTWARE. #include "terminal.h" #include "settings.h" +#include "config.h" struct aacPlayer { /* buffer */ @@ -190,8 +191,7 @@ void *threadPlayUrl (void *data) { curl_easy_setopt (audioFd, CURLOPT_URL, player->url); curl_easy_setopt (audioFd, CURLOPT_WRITEFUNCTION, playCurlCb); curl_easy_setopt (audioFd, CURLOPT_WRITEDATA, player); - /* at the moment we don't need publicity */ - curl_easy_setopt (audioFd, CURLOPT_USERAGENT, "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9pre) Gecko/2008051115 Firefox/3.0pre"); + curl_easy_setopt (audioFd, CURLOPT_USERAGENT, PACKAGE_STRING); curl_easy_perform (audioFd); free (player->buffer); |