Fix import: use exact filename stem as Eagle name field
Eagle matches metadata.json "name" to the actual filename stem exactly. Prettifying names (replacing hyphens, stripping numbers) caused Eagle to show empty folders. Also add Python import script (replaces bash version).
This commit is contained in:
parent
3d37235238
commit
9fe61f6b7a
@ -195,7 +195,7 @@ def main():
|
|||||||
try:
|
try:
|
||||||
ext = filepath.suffix.lower().lstrip(".")
|
ext = filepath.suffix.lower().lstrip(".")
|
||||||
stem = filepath.stem
|
stem = filepath.stem
|
||||||
display_name = clean_name(stem)
|
display_name = stem # Must match filename stem exactly for Eagle to find the file
|
||||||
item_id = gen_id()
|
item_id = gen_id()
|
||||||
item_dir = IMAGES / f"{item_id}.info"
|
item_dir = IMAGES / f"{item_id}.info"
|
||||||
item_dir.mkdir(parents=True, exist_ok=True)
|
item_dir.mkdir(parents=True, exist_ok=True)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user