NBLA: Unescape VTT content during SRT conversion
This commit is contained in:
parent
730cfd4125
commit
8b2089a58b
@ -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")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user