[db/filescanner/spotify] Set directory path

This commit is contained in:
chme
2018-11-24 09:44:18 +01:00
parent 42cbd721fd
commit dc020cc3ac
4 changed files with 7 additions and 6 deletions

View File

@@ -749,7 +749,7 @@ process_directory(char *path, int parent_id, int flags)
if (ret < 0)
return;
dir_id = db_directory_addorupdate(virtual_path, 0, parent_id);
dir_id = db_directory_addorupdate(virtual_path, path, 0, parent_id);
if (dir_id <= 0)
{
DPRINTF(E_LOG, L_SCAN, "Insert or update of directory failed '%s'\n", virtual_path);
@@ -876,7 +876,7 @@ process_parent_directories(char *path)
if (ret < 0)
return 0;
dir_id = db_directory_addorupdate(virtual_path, 0, dir_id);
dir_id = db_directory_addorupdate(virtual_path, buf, 0, dir_id);
if (dir_id <= 0)
{
DPRINTF(E_LOG, L_SCAN, "Insert or update of directory failed '%s'\n", virtual_path);