I've traced this to an issue with last.fm's server http response now being
chunk-encoded, which xmms2-scrobbler doesn't know how to decode.  Below is
a patch to src/xmms2-scrobbler.c which checks if the response is chunk
encoded and converts it to a normal text response in place.  I hope this
helps
151a152,173
>
>     /* parse buffer as chunk-encoded string if \r\n pattern found */
>     char *endline = ptr;
>
>     len = 0;
>     while ((newline = strstr(endline, "\r\n"))) {
>         newline += 2;
>         endline = strstr(newline, "\r\n");
>         if (!endline) {
>             fprintf (stderr, "chunk conversion error\n");
>             return total;
>         }
>         strncpy(ptr + len, newline, endline - newline);
>         len += endline - newline;
>         endline += 2;
>     }
>
>     if (len) {
>         *(ptr + len) = '\0';
>     }
>
>
154c176
<         fprintf (stderr, "no newline (1)\n");
---
>         fprintf (stderr, "no newline (0)\n");
323a346
>     curl_easy_setopt(curl, CURLOPT_HTTP_TRANSFER_DECODING, 0);

Reply via email to