[spotify] Add MEDIA_KIND_MUSIC and move DATA_KIND_SPOTIFY

This commit is contained in:
ejurgensen 2017-10-02 00:04:05 +02:00
parent c8edd2ff64
commit d6b30f5a64
1 changed files with 2 additions and 1 deletions

View File

@ -1975,6 +1975,8 @@ map_track_to_mfi(struct media_file_info* mfi, const struct spotify_track *track,
mfi->song_length = track->duration_ms; mfi->song_length = track->duration_ms;
mfi->track = track->track_number; mfi->track = track->track_number;
mfi->data_kind = DATA_KIND_SPOTIFY;
mfi->media_kind = MEDIA_KIND_MUSIC;
mfi->artwork = ARTWORK_SPOTIFY; mfi->artwork = ARTWORK_SPOTIFY;
mfi->type = strdup("spotify"); mfi->type = strdup("spotify");
mfi->codectype = strdup("wav"); mfi->codectype = strdup("wav");
@ -2020,7 +2022,6 @@ webapi_track_save(struct spotify_track *track, struct spotify_album *album, cons
memset(&mfi, 0, sizeof(struct media_file_info)); memset(&mfi, 0, sizeof(struct media_file_info));
mfi.data_kind = DATA_KIND_SPOTIFY;
mfi.id = db_file_id_bypath(track->uri); mfi.id = db_file_id_bypath(track->uri);
mfi.directory_id = dir_id; mfi.directory_id = dir_id;