parent
6aec344314
commit
d624d33b01
12 changed files with 239 additions and 175 deletions
apps/extract-subs/src
|
@ -98,8 +98,8 @@ const findSubs = (
|
|||
streams: FfprobeStream[],
|
||||
): FfprobeStream[] => {
|
||||
const subs = streams.filter((s) => s.tags?.language &&
|
||||
s.tags.language === lang &&
|
||||
s.codec_type === 'subtitle');
|
||||
s.tags.language === lang &&
|
||||
s.codec_type === 'subtitle');
|
||||
|
||||
const pgs = subs.filter((s) => s.codec_name === 'hdmv_pgs_subtitle');
|
||||
|
||||
|
@ -139,7 +139,9 @@ const main = async(): Promise<void> => {
|
|||
}
|
||||
|
||||
// Extract all subs
|
||||
subs.forEach((sub) => { extractSub(sub); });
|
||||
subs.forEach((sub) => {
|
||||
extractSub(sub);
|
||||
});
|
||||
});
|
||||
|
||||
removeContainerSubs();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue