All pastes #813681 Raw Edit

Audacious scrobbler patch

public c v1 · immutable
·published 2007-12-12 18:32 UTC
rendered paste body
--- ori/src/scrobbler/scrobbler.c   2007-11-06 23:27:02.000000000 +0200+++ mod/src/scrobbler/scrobbler.c   2007-12-12 20:29:55.000000000 +0200@@ -674,9 +674,9 @@        /*cfa(&post, &last, "debug", "failed");*/        entry = g_strdup_printf("s=%s&a=%s&t=%s&b=%s&l=%d&n=%d&m=", sc_session_id,-               aud_tuple_get_string(tuple, FIELD_ARTIST, NULL),-               aud_tuple_get_string(tuple, FIELD_TITLE, NULL),-               aud_tuple_get_string(tuple, FIELD_ALBUM, NULL) ? aud_tuple_get_string(tuple, FIELD_ALBUM, NULL) : "",+               fmt_escape(aud_tuple_get_string(tuple, FIELD_ARTIST, NULL)),+               fmt_escape(aud_tuple_get_string(tuple, FIELD_TITLE, NULL)),+               aud_tuple_get_string(tuple, FIELD_ALBUM, NULL) ? fmt_escape(aud_tuple_get_string(tuple, FIELD_ALBUM, NULL)) : "",                aud_tuple_get_int(tuple, FIELD_LENGTH, NULL) / 1000,                aud_tuple_get_int(tuple, FIELD_TRACK_NUMBER, NULL));