From f79447376688c557a413593d8220cd48ac807f40 Mon Sep 17 00:00:00 2001 From: Nirvana Date: Thu, 19 Mar 2026 15:33:42 +0100 Subject: [PATCH] Fix Playback --- .../providers/magenta2/vod_manager.py | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/lib/streaming_providers/providers/magenta2/vod_manager.py b/lib/streaming_providers/providers/magenta2/vod_manager.py index c718f9f..a8d7ca0 100644 --- a/lib/streaming_providers/providers/magenta2/vod_manager.py +++ b/lib/streaming_providers/providers/magenta2/vod_manager.py @@ -1267,12 +1267,22 @@ class VodManager: ) if playback_media_id: - effective_content_id = playback_media_id + # Extract the alphanumeric guid from the theplatform href — + # the SMIL selector requires the guid, not the numeric mediaId. + # e.g. "https://link.theplatform.eu/s/mdeprod/media/zRPPGLNGgPa1" + # → guid = "zRPPGLNGgPa1" + guid: Optional[str] = None + if playback_href: + tail = playback_href.rstrip("/").rsplit("/media/", 1) + if len(tail) == 2: + guid = tail[1].split("?")[0] or None + + effective_content_id = guid if guid else playback_media_id manifest_script = playback_href session_manifest = True logger.debug( f"{self._provider}: Episode {content_id} → " - f"resolved mediaId={playback_media_id}" + f"mediaId={playback_media_id}, guid={guid or '(none, using mediaId)'}" ) else: # Fallback: keep GN id + productInformationLink so the existing