mProjectsCode / obsidian-media-db-plugin

A plugin that can query multiple APIs for movies, series, anime, games, music and wiki articles, and import them into your vault.
GNU General Public License v3.0
255 stars 31 forks source link

Question regarding bulk import #79

Closed yte424 closed 1 year ago

yte424 commented 1 year ago

Describe the bug Question regarding bulk import

MDB - bulk import error report 12-23-2022 12-42-10

file error
Media DB/music/import/metadata.json metadata field 'titles' not found or empty
Media DB/music/import/AlbumsToListento.csv metadata field 'titles' not found or empty

can you give me a hint what I am doing wrong?

Thanks in advance

To Reproduce Steps to reproduce the behavior

I try to use the bulk imoport with this csv file:

CSV file to import

than I added a metadata.json file. Don't know if this is needed: Metadata json

And I choose the following option in the import: ![[Import Options.png]] Import Options

And I alway get an error message from the import.

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Occurs on

Plugin version 0.5.0

Additional context Add any other context about the problem here.

mProjectsCode commented 1 year ago

Bulk import expects the files in the folder to already represent the media db notes you want to have in the end.

The Bulk import will go through the folder and for each file, search for the metadata field specified, then query the selected API with the content of that field and finally update the contents of the file with the data it received from the API.