Vtt dfxp #31
Labels
No labels
Wrong-Place
bug
cli
dependencies
documentation
duplicate
enhancement
good first issue
help wanted
ice
invalid
question
request
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Creepso/multi-downloader-nx#31
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
** 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
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)