mirror of https://github.com/devine-dl/devine.git
Silence SubtitleEdit when stripping SDH
This commit is contained in:
parent
c778a890cf
commit
6e888a095e
|
@ -356,12 +356,16 @@ class Subtitle(Track):
|
|||
|
||||
executable = get_binary_path("SubtitleEdit")
|
||||
if executable:
|
||||
subprocess.run([
|
||||
subprocess.run(
|
||||
[
|
||||
executable,
|
||||
"/Convert", self.path, "srt",
|
||||
"/overwrite",
|
||||
"/RemoveTextForHI"
|
||||
], check=True)
|
||||
],
|
||||
check=True,
|
||||
stdout=subprocess.DEVNULL
|
||||
)
|
||||
# Remove UTF-8 Byte Order Marks
|
||||
self.path.write_text(
|
||||
self.path.read_text(encoding="utf-8-sig"),
|
||||
|
|
Loading…
Reference in New Issue