mirror of
https://github.com/anidl/multi-downloader-nx.git
synced 2026-05-10 20:10:38 +00:00
Add warning for pontially problematic subs
This commit is contained in:
parent
485433cd74
commit
e02fd59f43
1 changed files with 5 additions and 1 deletions
|
|
@ -83,7 +83,11 @@ class Merger {
|
|||
const shortestDuration = vnas[0].duration;
|
||||
for (const [vnaIndex, vna] of vnas.entries()) {
|
||||
//Don't calculate the shortestDuration track
|
||||
if (vnaIndex == 0) continue;
|
||||
if (vnaIndex == 0) {
|
||||
if (!vna.isPrimary && vna.isPrimary !== undefined)
|
||||
console.warn('Shortest video isn\'t primary, this might lead to problems with subtitles. Please report on github or discord if you experience issues.');
|
||||
continue;
|
||||
}
|
||||
if (vna.duration && shortestDuration) {
|
||||
//Calculate the tracks delay
|
||||
vna.delay = Math.ceil((vna.duration-shortestDuration) * 1000) / 1000;
|
||||
|
|
|
|||
Loading…
Reference in a new issue