m3u8-to-mp4-cli
Advanced tools
Comparing version 1.1.1 to 1.1.2
21
index.js
@@ -13,3 +13,4 @@ #!/usr/bin/env node | ||
let progressBar; | ||
let progressBarDownloading; | ||
let progressBarCombining; | ||
@@ -25,4 +26,4 @@ converter( | ||
case "downloading": | ||
if(!progressBar) { | ||
progressBar = new ProgressBar('downloading [:bar] :percent :etas', { | ||
if(!progressBarDownloading) { | ||
progressBarDownloading = new ProgressBar('downloading [:bar] :percent :etas', { | ||
complete: '=', | ||
@@ -34,8 +35,14 @@ incomplete: ' ', | ||
} | ||
progressBar.tick(); | ||
progressBarDownloading.tick(); | ||
break; | ||
case "combining": | ||
console.log( | ||
"combining mp4 process:" + ((index / total) * 100).toFixed(2) + "%" | ||
); | ||
if(!progressBarCombining) { | ||
progressBarCombining = new ProgressBar('combining [:bar] :percent :etas', { | ||
complete: '=', | ||
incomplete: ' ', | ||
total: total, | ||
width: 20 | ||
}); | ||
} | ||
progressBarCombining.tick(); | ||
break; | ||
@@ -42,0 +49,0 @@ } |
{ | ||
"name": "m3u8-to-mp4-cli", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "m3u8 hosted file to mp4", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
15087135
84490
0