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
243 stars 28 forks source link

Unable to add movies with illegal characters in title #140

Closed primarist closed 5 months ago

primarist commented 5 months ago

Describe the bug When adding movies with illegal characters in title, note creation fails. For example when trying to add "2001: A Space Odyssey", Obsidian will fail to create the new note with the following error (screenshots included below): "YAMLParseError: Nested mappings are not allowed in compact mappings at line 3, column 8".

To Reproduce Steps to reproduce the behavior:

  1. Open Media DB Search command
  2. Search movie with an illegal character in title (tested with "2001: A Space Odyssey")
  3. Select matching move and click "Ok"
  4. Open devtools and see error in console

Expected behavior Illegal character should either be stripped out or replaced with acceptable characters

Screenshots Search: image

Metadata Preview: image

Error Popup: image

Full Error (devtools): image

Occurs on

Plugin version 0.6.0