diff src/scrobbler/scrobbler.c @ 2904:ff9b4776b938

now scrobbler uses proxy settings; whole scrobbler plugin needs to be re-written using neon
author Andrew O. Shadoura <bugzilla@tut.by>
date Wed, 13 Aug 2008 16:15:29 +0300
parents 19fb7d7dcf4e
children 9ec994a3bb59
line wrap: on
line diff
--- a/src/scrobbler/scrobbler.c	Wed Aug 13 14:10:14 2008 +0300
+++ b/src/scrobbler/scrobbler.c	Wed Aug 13 16:15:29 2008 +0300
@@ -3,9 +3,9 @@
 #include <stdlib.h>
 #include <string.h>
 #include <stdarg.h>
-#include <curl/curl.h>
 #include <stdio.h>
 #include "fmt.h"
+#include "plugin.h"
 #include "scrobbler.h"
 #include "config.h"
 #include "settings.h"
@@ -489,6 +489,7 @@
     g_free(auth_tmp);
 
     curl = curl_easy_init();
+    setup_proxy(curl);
     curl_easy_setopt(curl, CURLOPT_NOPROGRESS, 1);
     curl_easy_setopt(curl, CURLOPT_URL, buf);
     curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, 
@@ -704,6 +705,7 @@
     gchar *entry;
 
     curl = curl_easy_init();
+    setup_proxy(curl);
     curl_easy_setopt(curl, CURLOPT_NOPROGRESS, 1);
     curl_easy_setopt(curl, CURLOPT_URL, sc_np_url);
     curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION,
@@ -763,6 +765,7 @@
         GString *submission;
 
     curl = curl_easy_init();
+    setup_proxy(curl);
     curl_easy_setopt(curl, CURLOPT_NOPROGRESS, 1);
     curl_easy_setopt(curl, CURLOPT_URL, sc_submit_url);
     curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION,