From 8b2089a58bde0e7fd7b9b480d7f4ee1355c30fc1 Mon Sep 17 00:00:00 2001 From: lambda <> Date: Sun, 25 Jan 2026 12:34:12 +0100 Subject: [PATCH] NBLA: Unescape VTT content during SRT conversion --- NBLA/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/NBLA/__init__.py b/NBLA/__init__.py index cd260c7..4fee102 100644 --- a/NBLA/__init__.py +++ b/NBLA/__init__.py @@ -4,6 +4,7 @@ from http.cookiejar import MozillaCookieJar from typing import Any, Optional, Union from functools import partial from pathlib import Path +import html import sys import re @@ -77,7 +78,7 @@ class NebulaSubtitle(Subtitle): tag.wrap(soup.new_tag("b")) - text = str(soup) + text = html.unescape(str(soup)) new_subs.append(f"{count}") new_subs.append(f"{caption.start} --> {caption.end}") new_subs.append(f"{text}\n")