Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions tests/test_load_from_plex.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import types

import httpx

from urllib.parse import urlparse
from mcp_plex import loader
from mcp_plex.types import TMDBShow

Expand Down Expand Up @@ -60,7 +60,8 @@ def fetchItems(keys):

async def handler(request):
url = str(request.url)
if "themoviedb.org" in url:
hostname = urlparse(url).hostname
if hostname and (hostname == "themoviedb.org" or hostname.endswith(".themoviedb.org")):
assert request.headers.get("Authorization") == "Bearer key"
if "titles:batchGet" in url:
ids = request.url.params.get_list("titleIds")
Expand Down