Movie Note generator script stopped working
Hello, the script which I originally downloaded from https://github.com/chhoumann/quickadd/blob/master/docs/docs/Examples/Macro_MovieAndSeriesScript.md is missing, so here is the version from my vault. There are few if any changes to it from the original referenced from the original.
What I'm finding is that my templates which use things like this don't work any more:
## Movie Details
### provided by get-user-movie.js
- category:: {{VALUE:typeLink}}
- type:: {{VALUE:Type}}
- genre:: {{VALUE:genreLinks}}
- year:: {{VALUE:Year}}
- length: {{VALUE:Runtime}}
- director:: {{VALUE:directorLink}}
- cast:: {{VALUE:actorLinks}}
- imdbId: {{VALUE:imdbID}}
- metarate: {{VALUE:imdbRating}}
I noticed this issue so I moved all my properties to the YAML section but it does the same thing:
---
aliases:
tags:
- <% "art/movies/db/unwatched" %>
created: [[<% tp.date.now() %>]]
category: {{VALUE:typeLink}}
type: {{VALUE:Type}}
genre: {{VALUE:genreLinks}}
year: {{VALUE:Year}}
length: {{VALUE:Runtime}}
director: {{VALUE:directorLink}}
cast: {{VALUE:actorLinks}}
imdbId: {{VALUE:imdbID}}
metarate: {{VALUE:imdbRating}}
desire: {{VALUE:Desire to see}}
my_rating: {{VALUE:My rating}}
watched: {{VALUE: Watched True/False}}
recommended_by:: [[{{VALUE: Recommended by}}]]
plot: {{VALUE:Plot}}
script: [[get-user-movie.js]]
poster: {{VALUE:Poster}}
---
# <% tp.file.title %>
Essentially, Templater acts as if the user script has not populated the appropriate values it expects, so it's asking me the user for them:
I have a lot of plugins but I doubt this is interference from something. All are up to date, as i Obsidian.
SYSTEM INFO:
Obsidian version: v1.11.0
Installer version: v1.7.7
Operating system: Darwin Kernel Version 25.1.0: Mon Oct 20 19:32:41 PDT 2025; root:xnu-12377.41.6~2/RELEASE_ARM64_T6000 25.1.0
Login status: logged in
Language: en
Catalyst license: insider
Insider build toggle: on
Live preview: on
Base theme: light
Community theme: Minimal v8.1.0
Snippets enabled: 3
Restricted mode: off
Plugins installed: 98
Plugins enabled: 85
1: Typewriter Scroll v0.2.2
2: Dictionary v2.22.0
3: Settings Search v1.3.10
4: Archiver v0.26.1
5: ibook v2.0.12
6: Media DB v0.8.0
7: Chronology v1.1.14
8: Timestamp Notes v1.0.8
9: Buttons v0.9.13
10: Dynamic Highlights v0.3.1
11: Code Block Enhancer v1.0.5
12: Contextual Typography v2.2.5
13: Commander v0.5.4
14: Emoji Toolbar v1.0.0
15: Editor Syntax Highlight v0.1.3
16: Advanced URI v1.46.0
17: Dataview v0.5.68
18: Copy as HTML v1.1.3
19: Copy Block Link v1.0.4
20: BRAT v1.3.2
21: Link Converter v0.1.6
22: Enhancing Export v1.10.11
23: Pandoc Plugin v0.4.1
24: Paste URL into selection v1.11.4
25: Periodic Notes v1.0.0-beta.3
26: Persistent Graph v0.1.5
27: Pinboard Sync v1.1.4
28: QuickAdd v2.9.0
29: Omnisearch v1.27.3
30: Janitor v1.1.1
31: Regex Find/Replace v1.2.0
32: Scales and Chords v1.0.1
33: Shell commands v0.23.0
34: Snippet Commands v0.0.2
35: Sort & Permute lines v0.7.0
36: Templater v2.16.2
37: TimeStamper v1.3.0
38: Tracker v1.17.0
39: Show Whitespace v0.3.1
40: Tasks v7.22.0
41: Waypoint v3.0.0
42: Workspaces Plus v0.3.3
43: HTML Tags Autocomplete v0.0.7
44: Recent Files v1.7.5
45: Charts v3.9.0
46: Note Refactor v1.8.2
47: Local Images Plus v0.16.4
48: Packrat v1.1.2
49: DB Folder v3.5.1
50: Calendar v1.5.10
51: Solve v1.1.0
52: Quick Tagger v2.2.3
53: Admonition v10.3.2
54: Vault Statistics v0.1.3
55: Collapse All v2.1.0
56: Fast Image Cleaner v0.8.3
57: Multi Properties v1.3.0
58: Plugin Reloader v0.0.3
59: Importer v1.8.2
60: Book Search v0.7.5
61: Outliner v4.9.0
62: Image Converter v1.3.18
63: Style Settings v1.0.9
64: Sortable v0.3.1
65: Natural Language Dates v0.6.2
66: Minimal Theme Settings v8.1.1
67: Metadata Extractor v1.1.0
68: Keyboard Analyzer v0.4.1
69: Highlightr v1.2.2
70: Frontmatter Tag Suggest v0.4.1
71: Find orphaned files and broken links v1.10.1
72: File Info Panel v1.3
73: Projects v1.17.4
74: Habit Calendar v1.2.0
75: Format Hotkeys v0.1.7
76: Excel to Markdown Table v0.4.0
77: Linter v1.30.0
78: Calctex v2.0.0
79: Apple Books Highlights v1.0.1
80: Mindmap NextGen v1.15.1
81: Global Search and Replace v0.5.0
82: TaskNotes v4.1.3
83: Quiet Outline v0.5.3
84: Tag Wrangler v0.6.4
85: Shiki Highlighter v0.7.0
RECOMMENDATIONS: Custom theme and snippets: for cosmetic issues, please first try updating your theme and disabling your snippets. If still not fixed, please try to make the issue happen in the Sandbox Vault or disable community theme and snippets. Community plugins: for bugs, please first try updating all your plugins to latest. If still not fixed, please try to make the issue happen in the Sandbox Vault or disable community plugins.
I'm having the same issue, user script variables seem to not propagate to the template. Seems to be a bug with v2.9.0.
Until this is fixed, you can use v2.8.0. See https://quickadd.obsidian.guide/docs/ManualInstallation for manual installation steps.
I tried version 2.8.0 and it acts exactly the same for me. My understanding is this might be related to some API shift in a certain area critical to this particular part of QuickAdd. The dev can clarify here I hope! Apologies for not finding it atm
@wealthychef1 FYI v2.7.0 is working for me as expected
:tada: This issue has been resolved in version 2.9.1 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:
Hi everyone, thank you for reporting this!
I've just merged #1015. It'll be part of the next release, which will be out shortly. Would you mind testing and letting me know if it works on your end?
I've tested and it works for me. Let me know if not!
Can confirm this is working for me with v2.9.1
Can confirm this is working for me with v2.9.1
It is not working for me. I'm not sure what the problem might be. Note that I am using the movie script I got a long time ago from https://github.com/chhoumann/quickadd/blob/master/docs/docs/Examples/Attachments/movies.js This link is now broken, which is another issue on this board. https://github.com/chhoumann/quickadd/issues/1009 Perhaps that's related. I'm attaching that script in case that's the problem:
I'm no expert, but it looks like the variable fileName should be exported, but when I run the macro, I get prompted for fileName as if the script is not exporting its variables...
Strangely, I cannot find the macro definitions for quickadd in my vault, where do they live now? It used to be in .obsidian/plugins/quickadd/data.json but mine is pretty barren, no macros in sight.
The data.json file I was using is in plugins/quickadd.old/data.json, and it has the macros in it:
, and those macros match what's in the GUI:
I'm very confused... can you say something about that too?
Thanks for any help!
@wealthychef1 Maybe try creating the whole "Movie Entry" macro again (create macro, add userscript, add template choice etc.). It might be that the script is failing silently somehow but better to eliminate the easier stuff first.
I recreated the macro and now get the following error in the console when I run it:
I tried using the vault path and it still fails:
But the script is there for sure and is executable if that matters:
rcook@MacBook-Pro-2021 (wealthyvault (master)): ls -l bin/get-user-movie.js
-rwxrwxr-x@ 1 rcook staff 4751 Oct 22 2024 bin/get-user-movie.js*
BTW... I notice that the file that stores these macros is .obsidian/plugins/quickadd.old/data.json I assume this is OK. .obsidian/plugins/quickadd/data.json does... what now? :-)