diff options
Diffstat (limited to 'plugins/lastfm')
-rw-r--r-- | plugins/lastfm/lastfm.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/lastfm/lastfm.c b/plugins/lastfm/lastfm.c index 190fa1a0..d0f53d48 100644 --- a/plugins/lastfm/lastfm.c +++ b/plugins/lastfm/lastfm.c @@ -227,24 +227,24 @@ fail: static int lfm_fetch_song_info (DB_playItem_t *song, const char **a, const char **t, const char **b, float *l, const char **n, const char **m) { *a = deadbeef->pl_find_meta (song, "artist"); - if (!strcmp (*a, "?")) { + if (!*a) { return -1; } *t = deadbeef->pl_find_meta (song, "title"); - if (!strcmp (*t, "?")) { + if (!*t) { return -1; } *b = deadbeef->pl_find_meta (song, "album"); - if (!strcmp (*b, "?")) { + if (!*b) { return -1; } *l = song->duration; *n = deadbeef->pl_find_meta (song, "track"); - if (!strcmp (*n, "?")) { + if (!*n) { *n = ""; } *m = deadbeef->pl_find_meta (song, "mbid"); - if (!strcmp (*m, "?")) { + if (!*m) { *m = ""; } return 0; |