[tapas] fix TypeError for locked episodes (#6700)

This commit is contained in:
Mike Fährmann
2024-12-21 15:17:51 +01:00
parent 454f766f5e
commit 18491a4ce6
3 changed files with 77 additions and 4 deletions

View File

@@ -85,8 +85,8 @@ class TapasEpisodeExtractor(TapasExtractor):
episode = data["episode"]
if not episode.get("free") and not episode.get("unlocked"):
raise exception.AuthorizationError(
"%s: Episode '%s' not unlocked",
episode_id, episode["title"])
"{}: Episode '{}' not unlocked".format(
episode_id, episode["title"]))
html = data["html"]
episode["series"] = self._extract_series(html)