[spotify] Improve Spotify loading efficiency and set time_added so smart playlists will work

This commit is contained in:
ejurgensen
2015-05-29 19:47:53 +02:00
parent 40d7d044be
commit 4a50a7a326
2 changed files with 32 additions and 10 deletions

View File

@@ -2558,7 +2558,9 @@ db_file_add(struct media_file_info *mfi)
}
mfi->db_timestamp = (uint64_t)time(NULL);
mfi->time_added = mfi->db_timestamp;
if (mfi->time_added == 0)
mfi->time_added = mfi->db_timestamp;
if (mfi->time_modified == 0)
mfi->time_modified = mfi->db_timestamp;