Fix typo chuncks -> chunks
This commit is contained in:
parent
9faa0c4846
commit
7da49197b3
2 changed files with 4 additions and 4 deletions
|
@ -11,7 +11,7 @@ function publishedDateToString(date: string) {
|
|||
return day+'-'+month+'-'+dateJs.getFullYear();
|
||||
}
|
||||
|
||||
function durationToTotalChuncks(duration: string) {
|
||||
function durationToTotalChunks(duration: string) {
|
||||
const durationObj = parse(duration);
|
||||
const hrs = durationObj['hours'] ?? 0;
|
||||
const mins = durationObj['minutes'] ?? 0;
|
||||
|
@ -50,7 +50,7 @@ export async function getVideoMetadata(videoGuids: string[], session: Session, v
|
|||
|
||||
posterImage = response.data['posterImage']['medium']['url'];
|
||||
date = publishedDateToString(response.data['publishedDate']);
|
||||
duration = durationToTotalChuncks(response.data.media['duration']);
|
||||
duration = durationToTotalChunks(response.data.media['duration']);
|
||||
|
||||
metadata.push({
|
||||
date: date,
|
||||
|
|
|
@ -240,9 +240,9 @@ async function downloadVideo(videoUrls: string[], outputDirectory: string, sessi
|
|||
});
|
||||
})
|
||||
.on('progress', progress => {
|
||||
const currentChuncks = ffmpegTimemarkToChunk(progress.timemark);
|
||||
const currentChunks = ffmpegTimemarkToChunk(progress.timemark);
|
||||
|
||||
pbar.update(currentChuncks, {
|
||||
pbar.update(currentChunks, {
|
||||
speed: progress.currentKbps
|
||||
});
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue