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
8 changes: 3 additions & 5 deletions mcp_plex/loader/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1595,7 +1595,7 @@ async def run(
raise RuntimeError("TMDB_API_KEY must be provided")
logger.info("Loading data from Plex server %s", plex_url)
server = PlexServer(plex_url, plex_token)
pipeline = LegacyLoaderPipeline(
orchestrator, items, qdrant_retry_queue = _build_loader_orchestrator(
client=client,
collection_name=collection_name,
dense_model_name=dense_model_name,
Expand All @@ -1609,10 +1609,8 @@ async def run(
upsert_buffer_size=upsert_buffer_size,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P0 Badge Live Plex CLI now uses stubbed staged ingestion

Switching the live branch to _build_loader_orchestrator means the CLI now runs the staged IngestionStage, but that stage still contains only placeholder logic that fetches media via .movies()/.shows() attributes and never calls the real Plex API. When run against an actual plexapi.PlexServer, those attributes do not exist so no batches are enqueued and the loader finishes with zero items. The legacy LegacyLoaderPipeline previously invoked _ingest_from_plex() which walked the Plex library correctly. This change therefore breaks real Plex ingestion entirely.

Useful? React with 👍 / 👎.

max_concurrent_upserts=_qdrant_max_concurrent_upserts,
)

await pipeline.execute()
items = pipeline.items
qdrant_retry_queue = pipeline.qdrant_retry_queue
logger.info("Starting staged loader (Plex mode)")
await orchestrator.run()
logger.info("Loaded %d items", len(items))
if not items:
logger.info("No points to upsert")
Expand Down