forked from DRMTalks/devine
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")
|
executable = get_binary_path("SubtitleEdit")
|
||||||
if executable:
|
if executable:
|
||||||
subprocess.run([
|
subprocess.run(
|
||||||
executable,
|
[
|
||||||
"/Convert", self.path, "srt",
|
executable,
|
||||||
"/overwrite",
|
"/Convert", self.path, "srt",
|
||||||
"/RemoveTextForHI"
|
"/overwrite",
|
||||||
], check=True)
|
"/RemoveTextForHI"
|
||||||
|
],
|
||||||
|
check=True,
|
||||||
|
stdout=subprocess.DEVNULL
|
||||||
|
)
|
||||||
# Remove UTF-8 Byte Order Marks
|
# Remove UTF-8 Byte Order Marks
|
||||||
self.path.write_text(
|
self.path.write_text(
|
||||||
self.path.read_text(encoding="utf-8-sig"),
|
self.path.read_text(encoding="utf-8-sig"),
|
||||||
|
|
Loading…
Reference in New Issue