Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
GSoC
GSoC2018
macOS
vlc
Commits
6c261070
Commit
6c261070
authored
Sep 30, 2006
by
dionoea
Browse files
- Don't cache files to ~/.vlc/art/(null)/(null)/
- Check if file already exists in the download function.
parent
53d5b959
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/input/meta.c
View file @
6c261070
...
...
@@ -171,6 +171,16 @@ int input_DownloadAndCacheArt( playlist_t *p_playlist, input_item_t *p_item )
||
!*
p_item
->
p_meta
->
psz_arturl
)
return
VLC_EGENERIC
;
/* FIXME: use an alternate saving filename scheme if we don't have
* the artist or album name */
if
(
!
p_item
->
p_meta
->
psz_artist
||
!
p_item
->
p_meta
->
psz_album
)
return
VLC_EGENERIC
;
/* Check if file doesn't already exist */
if
(
input_FindArtInCache
(
p_playlist
,
p_item
)
==
VLC_SUCCESS
)
return
VLC_SUCCESS
;
psz_type
=
strrchr
(
p_item
->
p_meta
->
psz_arturl
,
'.'
);
/* Todo: get a helper to do this */
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment