mirror of https://github.com/devine-dl/devine.git
Use OnMultiplex for auto SDH-strip subtitle
This commit is contained in:
parent
fe320e177d
commit
73b68fe7fe
|
@ -329,7 +329,7 @@ class dl:
|
||||||
non_sdh_sub = deepcopy(subtitle)
|
non_sdh_sub = deepcopy(subtitle)
|
||||||
non_sdh_sub.id += "_stripped"
|
non_sdh_sub.id += "_stripped"
|
||||||
non_sdh_sub.sdh = False
|
non_sdh_sub.sdh = False
|
||||||
non_sdh_sub.OnDownloaded = lambda x: x.strip_hearing_impaired()
|
non_sdh_sub.OnMultiplex = lambda x: x.strip_hearing_impaired()
|
||||||
title.tracks.add(non_sdh_sub)
|
title.tracks.add(non_sdh_sub)
|
||||||
|
|
||||||
with console.status("Sorting tracks by language and bitrate...", spinner="dots"):
|
with console.status("Sorting tracks by language and bitrate...", spinner="dots"):
|
||||||
|
|
Loading…
Reference in New Issue