We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7bb482b commit 121b776Copy full SHA for 121b776
tests/test_load_from_plex.py
@@ -2,7 +2,7 @@
2
import types
3
4
import httpx
5
-
+from urllib.parse import urlparse
6
from mcp_plex import loader
7
from mcp_plex.types import TMDBShow
8
@@ -60,7 +60,8 @@ def fetchItems(keys):
60
61
async def handler(request):
62
url = str(request.url)
63
- if "themoviedb.org" in url:
+ hostname = urlparse(url).hostname
64
+ if hostname and (hostname == "themoviedb.org" or hostname.endswith(".themoviedb.org")):
65
assert request.headers.get("Authorization") == "Bearer key"
66
if "titles:batchGet" in url:
67
ids = request.url.params.get_list("titleIds")
0 commit comments