mirror of
https://github.com/wukko/cobalt.git
synced 2025-06-12 21:27:39 +02:00
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:
@ -127,4 +127,4 @@ if (fs.existsSync('./.env')) {
|
||||
});
|
||||
} else {
|
||||
console.log('Required config files are missing. Please run "npm run setup" first.')
|
||||
}
|
||||
}
|
||||
|
@ -496,4 +496,4 @@ input[type="checkbox"] {
|
||||
.bottom-link {
|
||||
padding-bottom: 2rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -200,4 +200,4 @@ eid("url-input-area").addEventListener("keyup", (event) => {
|
||||
if (event.key === 'Enter') {
|
||||
eid("download-button").click();
|
||||
}
|
||||
})
|
||||
})
|
||||
|
@ -73,4 +73,4 @@
|
||||
"Download": "download",
|
||||
"CopyURL": "copy url"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -73,4 +73,4 @@
|
||||
"Download": "скачать",
|
||||
"CopyURL": "скопировать ссылку"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -33,4 +33,4 @@ export async function getJSON(originalURL, ip, lang, format, quality) {
|
||||
} catch (e) {
|
||||
return apiJSON(0, { t: loc(lang, 'ErrorSomethingWentWrong') });
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -15,4 +15,4 @@ supportedLanguages = config.supportedLanguages,
|
||||
quality = config.quality,
|
||||
internetExplorerRedirect = config.internetExplorerRedirect,
|
||||
donations = config.donations,
|
||||
ffmpegArgs = config.ffmpegArgs
|
||||
ffmpegArgs = config.ffmpegArgs
|
||||
|
@ -119,4 +119,4 @@ export default async function (host, patternMatch, url, ip, lang, format, qualit
|
||||
} catch (e) {
|
||||
return apiJSON(0, { t: genericError(lang, host) })
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -202,4 +202,4 @@ export default function(obj) {
|
||||
} catch (err) {
|
||||
return `${loc(obj.lang, 'ErrorPageRenderFail', obj.hash)}`;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -73,4 +73,4 @@
|
||||
"patterns": ["video/:postId", ":id"],
|
||||
"enabled": true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -31,4 +31,3 @@ export default async function(obj) {
|
||||
return { error: loc(obj.lang, 'ErrorBadFetch') };
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -25,4 +25,4 @@ export default async function(obj) {
|
||||
} catch (err) {
|
||||
return { error: loc(obj.lang, 'ErrorBadFetch') };
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -54,4 +54,4 @@ export default async function (obj) {
|
||||
} catch (err) {
|
||||
return { error: loc(obj.lang, 'ErrorBadFetch') };
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -44,4 +44,4 @@ export default async function(obj) {
|
||||
} catch (err) {
|
||||
return { error: loc(obj.lang, 'ErrorBadFetch') };
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -71,4 +71,3 @@ export default async function (obj) {
|
||||
return { error: loc(obj.lang, 'ErrorBadFetch') };
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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()
|
||||
}
|
||||
}
|
||||
|
@ -43,4 +43,4 @@ export function verifyStream(ip, id, hmac, exp, salt) {
|
||||
} catch (e) {
|
||||
return { status: 500, body: { status: "error", text: "Internal Server Error" } };
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -29,4 +29,4 @@ export default function(service, quality, maxQuality) {
|
||||
return closest(quality, s)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -110,4 +110,4 @@ export async function streamAudioOnly(streamInfo, res) {
|
||||
} catch (e) {
|
||||
internalError(res);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -8,4 +8,4 @@ export function md5(string) {
|
||||
}
|
||||
export function UUID() {
|
||||
return randomUUID();
|
||||
}
|
||||
}
|
||||
|
@ -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
|
||||
}
|
||||
}
|
||||
|
@ -8,4 +8,4 @@ export function errorUnsupported(lang) {
|
||||
}
|
||||
export function genericError(lang, host) {
|
||||
return loc(lang, 'ErrorBrokenLink', host);
|
||||
}
|
||||
}
|
||||
|
@ -6,4 +6,4 @@ export default function(path) {
|
||||
} catch(e) {
|
||||
return false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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));
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user