Skip to content

feat(stremio): prefer TVDB series search with IMDb fallback - #396

Merged
javi11 merged 1 commit into
kipsilabs:mainfrom
wrxco:codex/tvdb-series-search
Mar 7, 2026
Merged

feat(stremio): prefer TVDB series search with IMDb fallback#396
javi11 merged 1 commit into
kipsilabs:mainfrom
wrxco:codex/tvdb-series-search

Conversation

@wrxco

@wrxco wrxco commented Mar 6, 2026

Copy link
Copy Markdown
Contributor

Summary

  • prefer TvdbId queries for Stremio series searches when possible
  • keep existing IMDb behavior as fallback when TVDB lookup fails or returns empty
  • preserve current movie search path and existing Stremio output contract

What changed

  • added resolveTVDBFromIMDb() in internal/api/tvdb_lookup.go using TVMaze lookup API
  • updated handleStremioAddonStream to:
    • resolve IMDb -> TVDB for series
    • search Prowlarr with TvdbId first for tvsearch
    • fall back to ImdbId search on errors or empty TVDB result set
  • refactored Prowlarr client search builder:
    • introduced searchWithID(...)
    • added SearchByTVDB(...)

Why

Some indexers behind Prowlarr support TV episode discovery only with TvdbId for tvsearch. Existing IMDb-only series queries return zero results in those setups.

Behavior notes

  • no config migration required
  • no breaking API/UI changes
  • series search is now more compatible while retaining previous fallback behavior

@javi11 javi11 changed the title stremio: prefer TVDB series search with IMDb fallback feat(stremio): prefer TVDB series search with IMDb fallback Mar 7, 2026
@javi11
javi11 merged commit 77ec114 into kipsilabs:main Mar 7, 2026
2 checks passed
yoshitaka420 pushed a commit to yoshitaka420/altmount that referenced this pull request Jun 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants