mirror of
https://github.com/anidl/multi-downloader-nx.git
synced 2026-04-21 08:21:56 +00:00
Merge branch 'master' of https://github.com/stratumadev/multi-downloader-nx
This commit is contained in:
commit
d0e1850bde
3 changed files with 4263 additions and 5258 deletions
|
|
@ -2055,8 +2055,8 @@ export default class Crunchy implements ServiceClass {
|
|||
options.skipsubs = true;
|
||||
}
|
||||
|
||||
if(!options.skipsubs && options.dlsubs.indexOf('none') == -1){
|
||||
if(pbData.meta.subtitles && Object.values(pbData.meta.subtitles).length > 0){
|
||||
if (!options.skipsubs && options.dlsubs.indexOf('none') == -1){
|
||||
if ((pbData.meta.subtitles && Object.values(pbData.meta.subtitles).length) || (pbData.meta.closed_captions && Object.values(pbData.meta.closed_captions).length > 0)) {
|
||||
const subsData = Object.values(pbData.meta.subtitles);
|
||||
const capsData = Object.values(pbData.meta.closed_captions);
|
||||
const subsDataMapped = subsData.map((s) => {
|
||||
|
|
|
|||
|
|
@ -168,7 +168,7 @@ class Merger {
|
|||
if (this.options.fonts) {
|
||||
let fontIndex = 0;
|
||||
for (const font of this.options.fonts) {
|
||||
args.push(`-attach ${font.path} -metadata:s:t:${fontIndex} mimetype=${font.mime}`);
|
||||
args.push(`-attach ${font.path} -metadata:s:t:${fontIndex} mimetype=${font.mime} -metadata:s:t:${fontIndex} filename=${font.name}`);
|
||||
fontIndex++;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
9515
pnpm-lock.yaml
9515
pnpm-lock.yaml
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue