comparison src/scrobbler/plugin.c @ 1976:5fa26178eaef

s/tuple_/aud_tuple_/g
author William Pitcock <nenolod@atheme.org>
date Sun, 07 Oct 2007 00:22:59 -0500
parents 62e89e392227
children 2ffc6a69fcd1
comparison
equal deleted inserted replaced
1973:f86cb7fc1d4f 1976:5fa26178eaef
238 tuple = playlist_get_tuple(playlist, playlist_get_position(playlist)); 238 tuple = playlist_get_tuple(playlist, playlist_get_position(playlist));
239 239
240 if (tuple == NULL) 240 if (tuple == NULL)
241 continue; 241 continue;
242 242
243 if (ishttp(tuple_get_string(tuple, FIELD_FILE_NAME, NULL))) 243 if (ishttp(aud_tuple_get_string(tuple, FIELD_FILE_NAME, NULL)))
244 continue; 244 continue;
245 245
246 if (tuple_get_string(tuple, FIELD_ARTIST, NULL) != NULL && 246 if (aud_tuple_get_string(tuple, FIELD_ARTIST, NULL) != NULL &&
247 tuple_get_string(tuple, FIELD_TITLE, NULL) != NULL) 247 aud_tuple_get_string(tuple, FIELD_TITLE, NULL) != NULL)
248 { 248 {
249 pdebug(fmt_vastr( 249 pdebug(fmt_vastr(
250 "submitting artist: %s, title: %s", 250 "submitting artist: %s, title: %s",
251 tuple_get_string(tuple, FIELD_ARTIST, NULL), 251 aud_tuple_get_string(tuple, FIELD_ARTIST, NULL),
252 tuple_get_string(tuple, FIELD_TITLE, NULL)), DEBUG); 252 aud_tuple_get_string(tuple, FIELD_TITLE, NULL)), DEBUG);
253 253
254 sc_addentry(m_scrobbler, tuple, tuple_get_int(tuple, FIELD_LENGTH, NULL) / 1000); 254 sc_addentry(m_scrobbler, tuple, aud_tuple_get_int(tuple, FIELD_LENGTH, NULL) / 1000);
255 gerpok_sc_addentry(m_scrobbler, tuple, tuple_get_int(tuple, FIELD_LENGTH, NULL) / 1000); 255 gerpok_sc_addentry(m_scrobbler, tuple, aud_tuple_get_int(tuple, FIELD_LENGTH, NULL) / 1000);
256 } 256 }
257 else 257 else
258 pdebug("tuple does not contain an artist or a title, not submitting.", DEBUG); 258 pdebug("tuple does not contain an artist or a title, not submitting.", DEBUG);
259 259
260 submit = FALSE; 260 submit = FALSE;