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
255 stars 31 forks source link

"Movie not found!" error when using "Create Media DB Entry (Game)" option #77

Closed iznaut closed 1 year ago

iznaut commented 1 year ago

Describe the bug Creating a media entry with the (Game) option has inconsistent results - sometimes it will return an error message from OMDbAPI, even though searching the same title with the advanced search will yield SteamAPI results.

To Reproduce Steps to reproduce the behavior:

  1. Select "Create Media DB Entry (Game)" from the Command Palette
  2. Enter "neon white" and hit "Ok"

The plugin will return an OMDbAPI error "Movie not found!"

Expected behavior Searching "Neon White" should return SteamAPI results. The same query with only the SteamAPI option enabled in the advanced search will work, but it will fail if the OMDbAPI option is also enabled.

Screenshots If applicable, add screenshots to help explain your problem.

Screenshot 2022-12-17 at 7 39 52 PM Screenshot 2022-12-17 at 7 39 58 PM Screenshot 2022-12-19 at 6 23 58 PM Screenshot 2022-12-19 at 6 24 05 PM

Occurs on

Plugin version 0.5.0

mProjectsCode commented 1 year ago

Thanks for the report, it seems like OMDb returns an error if the item can't be found. I will fix this if I can find some free time during Christmas and New Year vacation.

mProjectsCode commented 1 year ago

Finally found some time