mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-23 20:53:19 -05:00
[db] Remove some definitions of ARTWORK_XXX
The artwork db field should only be used to save media file artwork metadata, which mostly means whether it has embedded artwork or not. It should not be used to save where we found artwork for the file, since that is not static. So this commit removes for instance ARTWORK_OWN, ARTWORK_DIR etc., which we weren't using anyway.
This commit is contained in:
parent
daf3922650
commit
153eb40b6d
5
src/db.h
5
src/db.h
@ -61,11 +61,6 @@ enum query_type {
|
||||
#define ARTWORK_UNKNOWN 0
|
||||
#define ARTWORK_NONE 1
|
||||
#define ARTWORK_EMBEDDED 2
|
||||
#define ARTWORK_OWN 3
|
||||
#define ARTWORK_DIR 4
|
||||
#define ARTWORK_PARENTDIR 5
|
||||
#define ARTWORK_SPOTIFY 6
|
||||
#define ARTWORK_HTTP 7
|
||||
|
||||
#define DB_ADMIN_SCHEMA_VERSION_MAJOR "schema_version_major"
|
||||
#define DB_ADMIN_SCHEMA_VERSION_MINOR "schema_version_minor"
|
||||
|
@ -393,7 +393,6 @@ scan_metadata_ffmpeg(struct media_file_info *mfi, const char *file)
|
||||
return -1;
|
||||
|
||||
av_dict_set(&options, "icy", "1", 0);
|
||||
mfi->artwork = ARTWORK_HTTP;
|
||||
}
|
||||
|
||||
ret = avformat_open_input(&ctx, path, NULL, &options);
|
||||
|
@ -1357,7 +1357,6 @@ map_track_to_mfi(struct media_file_info *mfi, const struct spotify_track *track,
|
||||
|
||||
mfi->data_kind = DATA_KIND_SPOTIFY;
|
||||
mfi->media_kind = MEDIA_KIND_MUSIC;
|
||||
mfi->artwork = ARTWORK_SPOTIFY;
|
||||
mfi->type = strdup("spotify");
|
||||
mfi->codectype = strdup("wav");
|
||||
mfi->description = strdup("Spotify audio");
|
||||
|
Loading…
x
Reference in New Issue
Block a user