diff --git a/src/library.c b/src/library.c index 1b1cbb24..f3c3bbfe 100644 --- a/src/library.c +++ b/src/library.c @@ -344,7 +344,7 @@ fixup_tags(struct media_file_info *mfi) } void -library_process_media(struct media_file_info *mfi) +library_add_media(struct media_file_info *mfi) { if (!mfi->path || !mfi->fname || !mfi->data_kind) { diff --git a/src/library.h b/src/library.h index f2929cf6..f1ac9d65 100644 --- a/src/library.h +++ b/src/library.h @@ -66,7 +66,7 @@ struct library_source void -library_process_media(struct media_file_info *mfi); +library_add_media(struct media_file_info *mfi); int library_add_playlist_info(const char *path, const char *title, const char *virtual_path, enum pl_type type, int parent_pl_id, int dir_id); diff --git a/src/library/filescanner.c b/src/library/filescanner.c index 896a4533..15b52551 100644 --- a/src/library/filescanner.c +++ b/src/library/filescanner.c @@ -456,7 +456,7 @@ process_regular_file(char *file, struct stat *sb, int type, int flags, int dir_i } } - library_process_media(&mfi); + library_add_media(&mfi); cache_artwork_ping(file, sb->st_mtime, !is_bulkscan); // TODO [artworkcache] If entry in artwork cache exists for no artwork available, delete the entry if media file has embedded artwork diff --git a/src/library/filescanner_playlist.c b/src/library/filescanner_playlist.c index 10538e57..f44f95a3 100644 --- a/src/library/filescanner_playlist.c +++ b/src/library/filescanner_playlist.c @@ -267,7 +267,7 @@ scan_playlist(char *file, time_t mtime, int dir_id) snprintf(virtual_path, PATH_MAX, "/http:/%s", mfi.title); //TODO can title be null at this point? mfi.virtual_path = strdup(virtual_path); - library_process_media(&mfi); + library_add_media(&mfi); } /* Regular file, should already be in library */ else diff --git a/src/spotify.c b/src/spotify.c index 624b7f83..229aed5b 100644 --- a/src/spotify.c +++ b/src/spotify.c @@ -711,7 +711,7 @@ spotify_track_save(int plid, sp_track *track, const char *pltitle, int time_adde mfi.virtual_path = strdup(virtual_path); mfi.directory_id = dir_id; - library_process_media(&mfi); + library_add_media(&mfi); free_mfi(&mfi, 1); @@ -2094,7 +2094,7 @@ scan_saved_albums() mfi.virtual_path = strdup(virtual_path); mfi.directory_id = dir_id; - library_process_media(&mfi); + library_add_media(&mfi); free_mfi(&mfi, 1); } @@ -2190,7 +2190,7 @@ scan_playlisttracks(struct spotify_playlist *playlist, int plid) mfi.virtual_path = strdup(virtual_path); mfi.directory_id = dir_id; - library_process_media(&mfi); + library_add_media(&mfi); spotify_uri_register(track.uri);