Skip to content

Commit a0562a8

Browse files
committed
fix: get_gdl_sidecar used wrong file extension for discovering gdl side car files
1 parent fbd2244 commit a0562a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tagstudio/src/core/ts_core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def get_gdl_sidecar(self, filepath: str | Path, source: str = "") -> dict:
3131
json_dump = {}
3232
info = {}
3333
_filepath: Path = Path(filepath)
34-
_filepath = _filepath.parent / (_filepath.stem + ".json")
34+
_filepath = _filepath.parent / (_filepath.name + ".json")
3535

3636
# NOTE: This fixes an unknown (recent?) bug in Gallery-DL where Instagram sidecar
3737
# files may be downloaded with indices starting at 1 rather than 0, unlike the posts.

0 commit comments

Comments
 (0)