Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid string functions and/or string syntax #36

Open
Zapperz0398 opened this issue Nov 23, 2024 · 2 comments
Open

Invalid string functions and/or string syntax #36

Zapperz0398 opened this issue Nov 23, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@Zapperz0398
Copy link

Zapperz0398 commented Nov 23, 2024

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
Copy link
Author

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
Copy link
Owner

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.

@Superschnizel Superschnizel self-assigned this Nov 26, 2024
@Superschnizel Superschnizel added the bug Something isn't working label Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants