1
0
mirror of https://github.com/snobu/destreamer.git synced 2026-01-16 21:12:13 +00:00

Fix typo chuncks -> chunks

This commit is contained in:
snobu
2020-04-11 16:19:10 +03:00
parent 9faa0c4846
commit 7da49197b3
2 changed files with 4 additions and 4 deletions

View File

@@ -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,

View File

@@ -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
});
})