Handle TMDB auth failures gracefully #3

Merged
DasPoschi merged 1 commits from codex/analysieren-und-beheben-von-fehlern into main 2026-01-01 17:49:14 +00:00
DasPoschi commented 2026-01-01 17:49:02 +00:00 (Migrated from github.com)

Motivation

  • Prevent TMDB HTTP errors (e.g. invalid API key or network issues) from causing job failures during name lookups.
  • Allow the pipeline to fall back to local filename/package-name when TMDB is unavailable.

Description

  • Wrap tmdb_search_movie calls to _http_get_json in a try/except and return None on error.
  • Wrap tmdb_search_tv calls to _http_get_json in a try/except and return None on error.
  • Changed jd-webgui/app.py so TMDB lookup failures no longer raise and instead result in fallback naming logic.

Testing

  • No automated tests were executed for this change (not requested).
  • Manual runtime validation was not recorded by the automation that produced this PR.

Codex Task

### Motivation - Prevent TMDB HTTP errors (e.g. invalid API key or network issues) from causing job failures during name lookups. - Allow the pipeline to fall back to local filename/package-name when TMDB is unavailable. ### Description - Wrap `tmdb_search_movie` calls to `_http_get_json` in a `try/except` and return `None` on error. - Wrap `tmdb_search_tv` calls to `_http_get_json` in a `try/except` and return `None` on error. - Changed `jd-webgui/app.py` so TMDB lookup failures no longer raise and instead result in fallback naming logic. ### Testing - No automated tests were executed for this change (not requested). - Manual runtime validation was not recorded by the automation that produced this PR. ------ [Codex Task](https://chatgpt.com/codex/tasks/task_e_6956afcf649c8327ae7a9d38f337c495)
Sign in to join this conversation.