Vtt dfxp #31

Closed
opened 2020-10-12 02:55:22 +00:00 by STRAT4TR · 1 comment
STRAT4TR commented 2020-10-12 02:55:22 +00:00 (Migrated from github.com)

** Main info: **
Currently I am able to download subtitles as .srt only, is there a way to download dfxp and vtt if the files are available?
// download subtitles
if(stDlPath){
console.log('[INFO] Downloading subtitles...');
console.log(stDlPath);
let subsSrc = await getData({
url: stDlPath,
useProxy: true,
});
if(subsSrc.ok){
let srtData = ttml2srt(subsSrc.res.body);
let srtFile = path.join(cfg.dir.content, fnOutput) + '.srt';
fs.writeFileSync(srtFile, srtData);
console.log('[INFO] Subtitles downloaded!');
}
else{
console.log('[ERROR] Failed to download subtitles!');
argv.mks = false;
}
}
current download subtitles function saves as srt only, I managed to get vtt url but I have yet to make a function to save it that works, I would greatly appreciate direction on how should I change to compile and be able to download the mentioned vtt and dfxp files if available

** Main info: ** Currently I am able to download subtitles as .srt only, is there a way to download dfxp and vtt if the files are available? // download subtitles if(stDlPath){ console.log('[INFO] Downloading subtitles...'); console.log(stDlPath); let subsSrc = await getData({ url: stDlPath, useProxy: true, }); if(subsSrc.ok){ let srtData = ttml2srt(subsSrc.res.body); let srtFile = path.join(cfg.dir.content, fnOutput) + '.srt'; fs.writeFileSync(srtFile, srtData); console.log('[INFO] Subtitles downloaded!'); } else{ console.log('[ERROR] Failed to download subtitles!'); argv.mks = false; } } current download subtitles function saves as srt only, I managed to get vtt url but I have yet to make a function to save it that works, I would greatly appreciate direction on how should I change to compile and be able to download the mentioned vtt and dfxp files if available
anidl-git commented 2020-10-13 17:27:52 +00:00 (Migrated from github.com)

this downloader don't download srt subtitles, it's convert from dfxp
you don't need dfxp/vtt since its only use for web
later i will make convert from vtt to ass/srt (based on output video container)

this downloader don't download srt subtitles, it's convert from dfxp you don't need dfxp/vtt since its only use for web later i will make convert from vtt to ass/srt (based on output video container)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Creepso/multi-downloader-nx#31
No description provided.