mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-11-24 18:05:07 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user