Browse Source

playlist_PreparseLoop(): oneliner fix for psz_arturl checking

We will get the art if either:
    psz_arturl is NULL
    psz_arturl doesn't begin with "file://"
pull/2/head
Rafaël Carré 19 years ago
parent
commit
47cbfa667e
  1. 3
      src/playlist/engine.c

3
src/playlist/engine.c

@ -534,8 +534,7 @@ void playlist_PreparseLoop( playlist_preparse_t *p_obj )
}
/* We already have all needed meta, but we need art right now */
else if( p_playlist->p_fetcher->i_art_policy == ALBUM_ART_ALL &&
psz_arturl &&
strncmp( psz_arturl, "file://", strlen("file://") ) )
( !psz_arturl || strncmp( psz_arturl, "file://", 7 ) ) )
{
preparse_item_t p;
PL_DEBUG("meta ok for %s, need to fetch art", psz_name );

Loading…
Cancel
Save