mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-30 09:03:23 -05:00
[library] Rename 'library_process_media' to 'library_add_media'
This commit is contained in:
parent
dadba23efc
commit
bdd08f516f
@ -344,7 +344,7 @@ fixup_tags(struct media_file_info *mfi)
|
|||||||
}
|
}
|
||||||
|
|
||||||
void
|
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)
|
if (!mfi->path || !mfi->fname || !mfi->data_kind)
|
||||||
{
|
{
|
||||||
|
@ -66,7 +66,7 @@ struct library_source
|
|||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
library_process_media(struct media_file_info *mfi);
|
library_add_media(struct media_file_info *mfi);
|
||||||
|
|
||||||
int
|
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);
|
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);
|
||||||
|
@ -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);
|
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
|
// TODO [artworkcache] If entry in artwork cache exists for no artwork available, delete the entry if media file has embedded artwork
|
||||||
|
@ -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?
|
snprintf(virtual_path, PATH_MAX, "/http:/%s", mfi.title); //TODO can title be null at this point?
|
||||||
mfi.virtual_path = strdup(virtual_path);
|
mfi.virtual_path = strdup(virtual_path);
|
||||||
library_process_media(&mfi);
|
library_add_media(&mfi);
|
||||||
}
|
}
|
||||||
/* Regular file, should already be in library */
|
/* Regular file, should already be in library */
|
||||||
else
|
else
|
||||||
|
@ -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.virtual_path = strdup(virtual_path);
|
||||||
mfi.directory_id = dir_id;
|
mfi.directory_id = dir_id;
|
||||||
|
|
||||||
library_process_media(&mfi);
|
library_add_media(&mfi);
|
||||||
|
|
||||||
free_mfi(&mfi, 1);
|
free_mfi(&mfi, 1);
|
||||||
|
|
||||||
@ -2094,7 +2094,7 @@ scan_saved_albums()
|
|||||||
mfi.virtual_path = strdup(virtual_path);
|
mfi.virtual_path = strdup(virtual_path);
|
||||||
mfi.directory_id = dir_id;
|
mfi.directory_id = dir_id;
|
||||||
|
|
||||||
library_process_media(&mfi);
|
library_add_media(&mfi);
|
||||||
|
|
||||||
free_mfi(&mfi, 1);
|
free_mfi(&mfi, 1);
|
||||||
}
|
}
|
||||||
@ -2190,7 +2190,7 @@ scan_playlisttracks(struct spotify_playlist *playlist, int plid)
|
|||||||
mfi.virtual_path = strdup(virtual_path);
|
mfi.virtual_path = strdup(virtual_path);
|
||||||
mfi.directory_id = dir_id;
|
mfi.directory_id = dir_id;
|
||||||
|
|
||||||
library_process_media(&mfi);
|
library_add_media(&mfi);
|
||||||
|
|
||||||
spotify_uri_register(track.uri);
|
spotify_uri_register(track.uri);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user