mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-09 13:39:47 -05:00
[db/filescanner/spotify] Set directory path
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user