fix(tags): point IMDbApi provider at api.tiffara.com (IMDxAPI)

Upstream migrated the free IMDxAPI from imdbapi.dev to api.tiffara.com.
Endpoints and JSON schema are unchanged, so only BASE_URL and the
user-facing docs/docstrings needed updating.
This commit is contained in:
imSp4rky
2026-07-12 07:34:47 -06:00
parent f42af571a7
commit 8769f678b1
2 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -8,7 +8,7 @@ import requests
from unshackle.core.config import config
from unshackle.core.providers._base import ExternalIds, MetadataProvider, MetadataResult, _clean, fuzzy_match
# Mapping from our kind ("movie"/"tv") to imdbapi.dev title types
# Mapping from our kind ("movie"/"tv") to IMDxAPI title types
KIND_TO_TYPES: dict[str, list[str]] = {
"movie": ["movie"],
"tv": ["tvSeries", "tvMiniSeries"],
@@ -16,11 +16,11 @@ KIND_TO_TYPES: dict[str, list[str]] = {
class IMDBApiProvider(MetadataProvider):
"""IMDb metadata provider using imdbapi.dev (free, no API key)."""
"""IMDb metadata provider using IMDxAPI (api.tiffara.com, free, no API key)."""
NAME = "imdbapi"
REQUIRES_KEY = False
BASE_URL = "https://api.imdbapi.dev"
BASE_URL = "https://api.tiffara.com"
def is_available(self) -> bool:
return config.imdb_api_enabled