if( !p_item->p_meta )
return VLC_EGENERIC;
- if( !p_item->psz_name && !p_item->p_meta->psz_title &&
- !p_item->p_meta->psz_artist && !p_item->p_meta->psz_album )
+ if( !p_item->psz_name && !p_item->p_meta->psz_title &&
+ (!p_item->p_meta->psz_artist || !p_item->p_meta->psz_album) )
return VLC_EGENERIC;
/* If we already checked this album in this session, skip */
psz_title = p_item->p_meta->psz_title;
if( !psz_title ) psz_title = p_item->psz_name;
- if( !psz_artist && !psz_album && !psz_title ) return VLC_EGENERIC;
+ if( (!psz_artist || !psz_album) && !psz_title ) return VLC_EGENERIC;
for( i = 0; i < 5; i++ )
{
else if( p_item->psz_name )
psz_title = ArtCacheCreateString( p_item->psz_name );
- if( !psz_title && !psz_album && !psz_artist )
+ if( (!psz_title || !psz_album) && !psz_artist )
{
free( psz_title );
free( psz_album );
else if( p_item->psz_name )
psz_title = ArtCacheCreateString( p_item->psz_name );
- if( !psz_artist && !psz_album && !psz_title )
+ if( (!psz_artist || !psz_album ) && !psz_title )
goto end;
/* */