fix bad initial settings file
This commit is contained in:
parent
803c14e8f3
commit
9641ddb96d
3 changed files with 5 additions and 4 deletions
|
@ -74,7 +74,7 @@ async function main(menu = false) {
|
||||||
if (isListEncodable) {
|
if (isListEncodable) {
|
||||||
for (let i = 0; i < filePaths.length; i++) {
|
for (let i = 0; i < filePaths.length; i++) {
|
||||||
const fileType = fileTypes[i].toLowerCase()
|
const fileType = fileTypes[i].toLowerCase()
|
||||||
if (fileType == "jpg" || fileType == "png" || fileType == "webp" ||
|
if (fileType == "jpg" || fileType == "png" || fileType == "webp" || fileType == "exr" ||
|
||||||
fileType == "webm" || fileType == "mp4" || fileType == "mov" || fileType == "mkv" || fileType == "avi" ||
|
fileType == "webm" || fileType == "mp4" || fileType == "mov" || fileType == "mkv" || fileType == "avi" ||
|
||||||
fileType == "ogg" || fileType == "mp3" || fileType == "aiff" || fileType == "wav" || fileType == "flac") {
|
fileType == "ogg" || fileType == "mp3" || fileType == "aiff" || fileType == "wav" || fileType == "flac") {
|
||||||
}
|
}
|
||||||
|
@ -94,7 +94,7 @@ async function main(menu = false) {
|
||||||
const fileType = fileTypes[i].toLowerCase()
|
const fileType = fileTypes[i].toLowerCase()
|
||||||
encoder.push(new Encoder(settings.settings))
|
encoder.push(new Encoder(settings.settings))
|
||||||
|
|
||||||
if (fileType == "jpg" || fileType == "png" || fileType == "webp") {
|
if (fileType == "jpg" || fileType == "png" || fileType == "webp" || fileType == "exr") {
|
||||||
ui.newBar(await encoder[i].encodePicture(filePaths[i], fileNames[i]))
|
ui.newBar(await encoder[i].encodePicture(filePaths[i], fileNames[i]))
|
||||||
encoder[i].on("update", (chunk) => { ui.updateBar(chunk, i, false, true) })
|
encoder[i].on("update", (chunk) => { ui.updateBar(chunk, i, false, true) })
|
||||||
encoder[i].on("close", () => { ui.encodeFinished(i) })
|
encoder[i].on("close", () => { ui.encodeFinished(i) })
|
||||||
|
|
|
@ -33,8 +33,9 @@ class SettingsManager {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
async #makeNewSettingsFile() {
|
async #makeNewSettingsFile() {
|
||||||
const settings = `
|
const settings = `{
|
||||||
"size_limit": 64000
|
"size_limit": 64000
|
||||||
|
}
|
||||||
`
|
`
|
||||||
/*const settings = `
|
/*const settings = `
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "8mb",
|
"name": "8mb",
|
||||||
"version": "1.1.2",
|
"version": "1.1.3",
|
||||||
"description": "helps free discord users to send any media(image, video, audio) and not get limited by discords 8mb file limit",
|
"description": "helps free discord users to send any media(image, video, audio) and not get limited by discords 8mb file limit",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"repository": {
|
"repository": {
|
||||||
|
|
Loading…
Reference in a new issue