Describe the bug
Adding a new MediaDB entry via TMDBSeasonAPI does not work when searching by series title.
To Reproduce
- In Obsidian sidebar menu: Click "Add new Media DB entry" icon.
- In Media DB Advanced search popup menu: Enter a TV series. I searched "pokemon".
- In Media DB Advanced search popup menu: Toggle on "TMDBSeasonAPI". Click "Ok"
- In search results menu: Select a series. I selected item: "Pokémon (1997) 26 Seasons SEASON from TMDBSeasonAPI". Click "Ok".
- An error popup appears that reads: Error MDB | Invalid season id "60572". Expected format "<series_id>/season/<season_number>".
Expected behavior
I expected a new obsidian note to be created.
Screenshots
N/A
Occurs on
Plugin version
0.8.0-canary.20260129T112027
Additional context
I suspect that after submitting a selected search result, TMDBSeasonAPI tries to run the function "async getById(id: string)" but it is only being given a string like "60572" instead of being in the expected format.
Describe the bug
Adding a new MediaDB entry via TMDBSeasonAPI does not work when searching by series title.
To Reproduce
Expected behavior
I expected a new obsidian note to be created.
Screenshots
N/A
Occurs on
Plugin version
0.8.0-canary.20260129T112027
Additional context
I suspect that after submitting a selected search result, TMDBSeasonAPI tries to run the function "async getById(id: string)" but it is only being given a string like "60572" instead of being in the expected format.