NBLA: Unescape VTT content during SRT conversion

This commit is contained in:
lambda 2026-01-25 12:34:12 +01:00
parent 730cfd4125
commit 8b2089a58b

View File

@ -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")