[spotify] Replace db_file_stamp_bypath with db_file_ping

This commit is contained in:
ejurgensen 2017-10-02 22:10:38 +02:00
parent d6b30f5a64
commit 4928d2c155

View File

@ -542,7 +542,6 @@ spotify_track_save(int plid, sp_track *track, const char *pltitle, int time_adde
int ret; int ret;
char virtual_path[PATH_MAX]; char virtual_path[PATH_MAX];
int dir_id; int dir_id;
time_t stamp;
int id; int id;
memset(&mfi, 0, sizeof(struct media_file_info)); memset(&mfi, 0, sizeof(struct media_file_info));
@ -600,7 +599,9 @@ spotify_track_save(int plid, sp_track *track, const char *pltitle, int time_adde
// DPRINTF(E_DBG, L_SPOTIFY, "Saving track '%s': '%s' by %s (%s)\n", url, mfi.title, mfi.artist, mfi.album); // DPRINTF(E_DBG, L_SPOTIFY, "Saving track '%s': '%s' by %s (%s)\n", url, mfi.title, mfi.artist, mfi.album);
db_file_stamp_bypath(url, &stamp, &id); id = db_file_id_bypath(url);
if (id)
db_file_ping(id);
mfi.id = id; mfi.id = id;
mfi.path = strdup(url); mfi.path = strdup(url);