Superschnizel / Obsidian-Moviegrabber

obsidian.md plugin to grab data from public movie Databases and make them into a note that can be used with dataview querries
MIT License
24 stars 5 forks source link

Invalid string functions and/or string syntax #36

Open Zapperz0398 opened 6 days ago

Zapperz0398 commented 6 days ago

Overview

Upon note creation, a bunch of error messages pop up in Obsidian, detailing what looks like an invalid string function or invalid string syntax (image 1)

Steps to reproduce

  1. Install plugin and place API key into field
  2. Query any movie
  3. Upon note creation on movie retrieval, error message will appear

Additional

Additionally, the actors field is not filled with data (image 2), nor is the trailer_embed field being populated with data (image 3), however I assume the YouTube 'trailer_embed' field is not being added because I have not added a YouTube API key to the plugin

Image 1

image

Image 2

image

Image 3

image

Zapperz0398 commented 6 days ago

From reviewing the code and errors a bit, I feel the error is occurring on this line of code

However, take my analysis with a grain of salt, as I am not fluent in Typescripts and/or Javascript

Superschnizel commented 3 days ago

Hi @Zapperz0398, This seems to be an issue in the default template, to circumvent this until i am able to push a fix you can create a custom Template file in the settings and edit the Actors field to be just {{Actors}}. Make sure to always edit the template in source mode, as Obsidian will sometimes break the template if it is changed in live preview mode.