mirror of
https://github.com/snobu/destreamer.git
synced 2026-03-23 20:27:47 +00:00
Fix typo chuncks -> chunks
This commit is contained in:
@@ -11,7 +11,7 @@ function publishedDateToString(date: string) {
|
|||||||
return day+'-'+month+'-'+dateJs.getFullYear();
|
return day+'-'+month+'-'+dateJs.getFullYear();
|
||||||
}
|
}
|
||||||
|
|
||||||
function durationToTotalChuncks(duration: string) {
|
function durationToTotalChunks(duration: string) {
|
||||||
const durationObj = parse(duration);
|
const durationObj = parse(duration);
|
||||||
const hrs = durationObj['hours'] ?? 0;
|
const hrs = durationObj['hours'] ?? 0;
|
||||||
const mins = durationObj['minutes'] ?? 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'];
|
posterImage = response.data['posterImage']['medium']['url'];
|
||||||
date = publishedDateToString(response.data['publishedDate']);
|
date = publishedDateToString(response.data['publishedDate']);
|
||||||
duration = durationToTotalChuncks(response.data.media['duration']);
|
duration = durationToTotalChunks(response.data.media['duration']);
|
||||||
|
|
||||||
metadata.push({
|
metadata.push({
|
||||||
date: date,
|
date: date,
|
||||||
|
|||||||
@@ -240,9 +240,9 @@ async function downloadVideo(videoUrls: string[], outputDirectory: string, sessi
|
|||||||
});
|
});
|
||||||
})
|
})
|
||||||
.on('progress', progress => {
|
.on('progress', progress => {
|
||||||
const currentChuncks = ffmpegTimemarkToChunk(progress.timemark);
|
const currentChunks = ffmpegTimemarkToChunk(progress.timemark);
|
||||||
|
|
||||||
pbar.update(currentChuncks, {
|
pbar.update(currentChunks, {
|
||||||
speed: progress.currentKbps
|
speed: progress.currentKbps
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user