Changeset 6c2610706ea6ab0d2fc7120eefd55c872671c951

Show
Ignore:
Timestamp:
30/09/06 21:37:39 (2 years ago)
Author:
Antoine Cellerier <dionoea@videolan.org>
git-committer:
Antoine Cellerier <dionoea@videolan.org> 1159645059 +0000
git-parent:

[53d5b9594c43a55067cdd385ffd2f0f5fc4f2d78]

git-author:
Antoine Cellerier <dionoea@videolan.org> 1159645059 +0000
Message:
  • Don't cache files to ~/.vlc/art/(null)/(null)/
  • Check if file already exists in the download function.
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/input/meta.c

    recdf0f1 r6c26107  
    171171                        || !*p_item->p_meta->psz_arturl ) 
    172172        return VLC_EGENERIC; 
     173 
     174    /* FIXME: use an alternate saving filename scheme if we don't have 
     175     * the artist or album name */ 
     176    if(    !p_item->p_meta->psz_artist 
     177        || !p_item->p_meta->psz_album ) 
     178        return VLC_EGENERIC; 
     179 
     180    /* Check if file doesn't already exist */ 
     181    if( input_FindArtInCache( p_playlist, p_item ) == VLC_SUCCESS ) 
     182        return VLC_SUCCESS; 
    173183 
    174184    psz_type = strrchr( p_item->p_meta->psz_arturl, '.' );