Commit 61630d2b authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

input/meta.c: Don't re-run the art finder if the art was previously set in...

input/meta.c: Don't re-run the art finder if the art was previously set in input_ArtFind. (Should fix youtube.lua arturl).
parent 25aa7cd6
......@@ -165,13 +165,21 @@ int input_ArtFind( playlist_t *p_playlist, input_item_t *p_item )
input_FindArtInCache( p_playlist, p_item );
char *psz_arturl = input_item_GetArtURL( p_item );
if( psz_arturl && !strncmp( psz_arturl, "file://", strlen( "file://" ) ) )
if( psz_arturl )
{
/* We already have an URL */
if( !strncmp( psz_arturl, "file://", strlen( "file://" ) ) )
{
free( psz_arturl );
return 0; /* Art is in cache, no need to go further */
}
free( psz_arturl );
/* Art need to be put in cache */
return 1;
}
PL_LOCK;
p_playlist->p_private = p_item;
psz_album = input_item_GetAlbum( p_item );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment