Skip to content

Audio files within sub-folders are retaining the parent folder name as the PID. #5

@bdgregg

Description

@bdgregg

When processing a batch of objects using scan-batch-dir, where each object contains one or more objects, the PID is being concatenated with the parent PID.

Eg.

Batch1

  • ObjectID
    • filename.mp3
    • filename.vtt

The resulting PIDs are:
PID Parent
ObjectID
ObjectID-filename.mp3 ObjectID
ObjectID-filename.vtt ObjectID

The resulting PIDS should be:
PID Parent
ObjectID
filename.mp3 ObjectID
filename.vtt ObjectID

Note: This is the same approach as a "Compound Audio" model which doesn't work as expected.

Example Data:
Files: /scanning/20250507_CLP_OHMP
Sheet: https://docs.google.com/spreadsheets/d/1WUqcYjB00KwW7g9SfVqv2CHTl6BaYz1bZWTiwyY3e_g
Tab: Simple_17_Display

Workaround:
Move all audio files in sub-directories to the top "batch" folder and re-run the script.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions