basically new readme and more languages

- indonesian localization by @LyfeV
- rewrote readme
- added new line at the end for files that were missing it
This commit is contained in:
wukko
2022-08-01 21:48:37 +06:00
parent ca1a5a32b4
commit c0289b6a8c
26 changed files with 73 additions and 44 deletions

View File

@ -127,4 +127,4 @@ if (fs.existsSync('./.env')) {
});
} else {
console.log('Required config files are missing. Please run "npm run setup" first.')
}
}

View File

@ -496,4 +496,4 @@ input[type="checkbox"] {
.bottom-link {
padding-bottom: 2rem;
}
}
}

View File

@ -200,4 +200,4 @@ eid("url-input-area").addEventListener("keyup", (event) => {
if (event.key === 'Enter') {
eid("download-button").click();
}
})
})

View File

@ -73,4 +73,4 @@
"Download": "download",
"CopyURL": "copy url"
}
}
}

View File

@ -73,4 +73,4 @@
"Download": "скачать",
"CopyURL": "скопировать ссылку"
}
}
}

View File

@ -33,4 +33,4 @@ export async function getJSON(originalURL, ip, lang, format, quality) {
} catch (e) {
return apiJSON(0, { t: loc(lang, 'ErrorSomethingWentWrong') });
}
}
}

View File

@ -15,4 +15,4 @@ supportedLanguages = config.supportedLanguages,
quality = config.quality,
internetExplorerRedirect = config.internetExplorerRedirect,
donations = config.donations,
ffmpegArgs = config.ffmpegArgs
ffmpegArgs = config.ffmpegArgs

View File

@ -119,4 +119,4 @@ export default async function (host, patternMatch, url, ip, lang, format, qualit
} catch (e) {
return apiJSON(0, { t: genericError(lang, host) })
}
}
}

View File

@ -202,4 +202,4 @@ export default function(obj) {
} catch (err) {
return `${loc(obj.lang, 'ErrorPageRenderFail', obj.hash)}`;
}
}
}

View File

@ -73,4 +73,4 @@
"patterns": ["video/:postId", ":id"],
"enabled": true
}
}
}

View File

@ -31,4 +31,3 @@ export default async function(obj) {
return { error: loc(obj.lang, 'ErrorBadFetch') };
}
}

View File

@ -25,4 +25,4 @@ export default async function(obj) {
} catch (err) {
return { error: loc(obj.lang, 'ErrorBadFetch') };
}
}
}

View File

@ -54,4 +54,4 @@ export default async function (obj) {
} catch (err) {
return { error: loc(obj.lang, 'ErrorBadFetch') };
}
}
}

View File

@ -44,4 +44,4 @@ export default async function(obj) {
} catch (err) {
return { error: loc(obj.lang, 'ErrorBadFetch') };
}
}
}

View File

@ -71,4 +71,3 @@ export default async function (obj) {
return { error: loc(obj.lang, 'ErrorBadFetch') };
}
}

View File

@ -51,4 +51,4 @@ let final = () => {
console.log("You can re-run this script any time to update the configuration.")
console.log("\nYou're now ready to start the main project.\nHave fun!")
rl.close()
}
}

View File

@ -43,4 +43,4 @@ export function verifyStream(ip, id, hmac, exp, salt) {
} catch (e) {
return { status: 500, body: { status: "error", text: "Internal Server Error" } };
}
}
}

View File

@ -29,4 +29,4 @@ export default function(service, quality, maxQuality) {
return closest(quality, s)
}
}
}
}

View File

@ -110,4 +110,4 @@ export async function streamAudioOnly(streamInfo, res) {
} catch (e) {
internalError(res);
}
}
}

View File

@ -8,4 +8,4 @@ export function md5(string) {
}
export function UUID() {
return randomUUID();
}
}

View File

@ -7,4 +7,4 @@ export function getCommitInfo() {
let d = execSync(`git show -s --format='%s;;;%B'`).toString().trim().replace(/[\r\n]/gm, '\n').split(';;;')
d[1] = d[1].replace(d[0], '').trim().toString().replace(/[\r\n]/gm, '<br>')
return d
}
}

View File

@ -8,4 +8,4 @@ export function errorUnsupported(lang) {
}
export function genericError(lang, host) {
return loc(lang, 'ErrorBrokenLink', host);
}
}

View File

@ -6,4 +6,4 @@ export default function(path) {
} catch(e) {
return false
}
}
}

View File

@ -56,4 +56,4 @@ export function unicodeDecode(str) {
return str.replace(/\\u[\dA-F]{4}/gi, (unicode) => {
return String.fromCharCode(parseInt(unicode.replace(/\\u/g, ""), 16));
});
}
}