From d8a11a796d4bee70fdb758f831cad69ee39799e4 Mon Sep 17 00:00:00 2001 From: yedpodtrzitko Date: Mon, 29 Apr 2024 12:53:41 +0800 Subject: [PATCH] fix: strip leading slash in library items --- tagstudio/src/core/library.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tagstudio/src/core/library.py b/tagstudio/src/core/library.py index 41062957..50fd9aad 100644 --- a/tagstudio/src/core/library.py +++ b/tagstudio/src/core/library.py @@ -808,7 +808,7 @@ class Library: f'{entry.path}/{entry.filename}')).lower().lstrip('\\').lstrip('/')] = entry.id else: self.filename_to_entry_id_map[str( - os.path.normpath(f'{entry.path}/{entry.filename}'))] = entry.id + os.path.normpath(f'{entry.path}/{entry.filename}')).lstrip('/')] = entry.id # def _map_filenames_to_entry_ids(self): # """Maps the file paths of entries to their index in the library list."""