input_FindArtInCache( p_playlist, p_item );
char *psz_arturl = input_item_GetArtURL( p_item );
- if( !EMPTY_STR( psz_arturl ) )
+ if( !strncmp( psz_arturl, "file://", strlen( "file://" ) ) )
{
free( psz_arturl );
return 0; /* Art is in cache, no need to go further */
/* Check if we already dumped it */
if( !utf8_stat( psz_filename+7, &s ) )
+ {
+ vlc_meta_Set( p_item->p_meta, vlc_meta_ArtworkURL, psz_filename );
return;
+ }
f = utf8_fopen( psz_filename+7, "w" );
if( f )
}
/* We already have all needed meta, but we need art right now */
else if( p_playlist->p_fetcher->i_art_policy == ALBUM_ART_ALL &&
- EMPTY_STR( psz_arturl ) )
+ strncmp( psz_arturl, "file://", strlen("file://") ) )
{
preparse_item_t p;
PL_DEBUG("meta ok for %s, need to fetch art", psz_name );