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 typing import Any, Optional, Union
from functools import partial from functools import partial
from pathlib import Path from pathlib import Path
import html
import sys import sys
import re import re
@ -77,7 +78,7 @@ class NebulaSubtitle(Subtitle):
tag.wrap(soup.new_tag("b")) tag.wrap(soup.new_tag("b"))
text = str(soup) text = html.unescape(str(soup))
new_subs.append(f"{count}") new_subs.append(f"{count}")
new_subs.append(f"{caption.start} --> {caption.end}") new_subs.append(f"{caption.start} --> {caption.end}")
new_subs.append(f"{text}\n") new_subs.append(f"{text}\n")