mirror of
https://github.com/vinefeeder/TwinVine.git
synced 2026-07-15 18:10:04 +02:00
imdb url fix
This commit is contained in:
@@ -7,7 +7,7 @@ import requests
|
||||
|
||||
from envied.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"],
|
||||
@@ -15,14 +15,14 @@ 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 = True
|
||||
BASE_URL = "https://api.imdbapi.dev"
|
||||
REQUIRES_KEY = False
|
||||
BASE_URL = "https://api.tiffara.com"
|
||||
|
||||
def is_available(self) -> bool:
|
||||
return False # no key needed
|
||||
return True # no key needed
|
||||
|
||||
def search(self, title: str, year: Optional[int], kind: str) -> Optional[MetadataResult]:
|
||||
self.log.debug("Searching IMDBApi for %r (%s, %s)", title, kind, year)
|
||||
|
||||
@@ -394,10 +394,7 @@ class BbcLoader(BaseLoader):
|
||||
)
|
||||
|
||||
# specific to BBC
|
||||
# self.options_list = split_options(self.options)
|
||||
for item in selected_final_episodes:
|
||||
#print(type(item))
|
||||
#print(item)
|
||||
for item in selected_final_episodes: # string from beaupy
|
||||
for part in item.split(","):
|
||||
if "UHD" in part:
|
||||
uhd = part.split("UHD=")[1].strip()
|
||||
|
||||
Reference in New Issue
Block a user