[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)

View File

@@ -6,5 +6,5 @@
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
__version__ = "1.28.2"
__version__ = "1.28.3-dev"
__variant__ = None