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
254 stars 31 forks source link

Import errors referencing 'undefined' metadata missing #168

Closed jimazing closed 1 month ago

jimazing commented 1 month ago

Obsidian Version v1.6.7 MediaDB Version 0.7.2

I love this plugin. Adding items one at a time works beautifully. Thank you.

Problem: I have hundreds of items already in Obsidian that I want to import into MediaDB. When I run the import against my Books folder, every item generates this error: "metadata field 'undefined' not found or empty"

ltctceplrm commented 1 month ago

I suspect that you forgot to specify which metadata field you want to use for the search: This image shows the field to be empty but proposes to use title image

In this image I wrote title as the metadata field to be used image

If it still doesn't work could you share a copy of the yaml for one of your book notes?

Edit: Don't forget to make a backup of your original files before doing an import, just in case

jimazing commented 1 month ago

Thank you! That was it.

The word "title" is in the box, but it appears lighter. I assumed I didn't need to enter a value. Now I see it was a suggested value. It was confusing me.