obsidian-media-db-plugin icon indicating copy to clipboard operation
obsidian-media-db-plugin copied to clipboard

Template error when using watched and personalRating in movie notes

Open btbristow opened this issue 1 year ago • 2 comments

  • [x] The Plugin is up to date
  • [x] Obsidian is up to date

Describe the bug When I try to insert {{watched}} or {{personalRating}} in a movie note, I get: {{ INVALID TEMPLATE TAG - object undefined }}

I can see these are being added to my metadata with values of "false" and "0" respectively, but I don't know how to add them to the body of a movie note.

Can you give me an example of how to use these variables in the note body and the YAML? If this is a bug, it is only a documentation bug, as I don't think docs are written yet. Thanks!

Occurs on

Windows iOS

btbristow avatar Oct 30 '23 12:10 btbristow

Hi there, I don't know if you still have this issue almost a year later but I wanted to let you know that if you use templater this bug doesn't happen, instead of {{watched}} or {{personalRating}} you'd use <% tp.frontmatter.watched %> or <% tp.frontmatter.personalRating %>

I tried find why this bug happens but I believe it's a problem with obsidian templates and not this plugin.

ltctceplrm avatar Aug 21 '24 15:08 ltctceplrm

I guess this is due to those properties being handled differently from the rest. (They are not plain props on the models)

mProjectsCode avatar Aug 21 '24 21:08 mProjectsCode