Fix Playback

This commit is contained in:
Nirvana
2026-03-19 15:33:42 +01:00
parent 3436d3175c
commit f794473766
@@ -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