aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRblSb <msrblsb@gmail.com>2025-08-21 20:40:25 +0300
committerRblSb <msrblsb@gmail.com>2025-08-21 20:40:25 +0300
commitbae9d4be2fd8f0819f45fbff2917d1b402b3b610 (patch)
treef59a5a0ed9e70f4c47ecc639ac3882f699d22730
parente01ed5f5431551f8b159b4fd491c670efeca57ee (diff)
Minor locales fix
-rw-r--r--build/server.js4
-rw-r--r--res/css/des.css9
-rw-r--r--res/langs/en.json4
-rw-r--r--res/langs/ru.json4
-rw-r--r--src/server/cache/YoutubeCache.hx2
5 files changed, 17 insertions, 6 deletions
diff --git a/build/server.js b/build/server.js
index 98f667e..354e3c8 100644
--- a/build/server.js
+++ b/build/server.js
@@ -6506,7 +6506,7 @@ server_cache_YoutubeCache.prototype = {
var a = tmp1 != null ? tmp1 : 0;
var audioSizeRatio = (a < 2 ? 2 : a) / totalSize;
var isVideoFormatDownloading = true;
- var dlVideo = _gthis.ytDlp.downloadAsync(url,{ format : videoFormat.format_id == tmp.format_id ? videoFormat.format_id : "" + videoFormat.format_id + "+" + tmp.format_id, output : "" + _gthis.cache.cacheDir + "/" + inVideoName, remuxVideo : "mp4", cookies : useCookies ? _gthis.getCookiesPathOrNull() : null, forceIpv4 : true, onProgress : function(p) {
+ var dlVideo = _gthis.ytDlp.downloadAsync(url,{ format : videoFormat.format_id == tmp.format_id ? videoFormat.format_id : "" + videoFormat.format_id + "+" + tmp.format_id, output : "" + _gthis.cache.cacheDir + "/" + inVideoName, remuxVideo : "mp4", cookies : useCookies ? _gthis.getCookiesPathOrNull() : null, forceIpv4 : true, socketTimeout : 2, extractorRetries : 0, onProgress : function(p) {
var isFinished = p.status == "finished";
var ratio;
if(isFinished) {
@@ -6548,7 +6548,7 @@ server_cache_YoutubeCache.prototype = {
});
};
this.getInfoAsync(url,useCookies).then(onGetInfo).catch(function(err) {
- haxe_Log.trace(err,{ fileName : "src/server/cache/YoutubeCache.hx", lineNumber : 186, className : "server.cache.YoutubeCache", methodName : "cacheYoutubeVideo"});
+ haxe_Log.trace(err,{ fileName : "src/server/cache/YoutubeCache.hx", lineNumber : 188, className : "server.cache.YoutubeCache", methodName : "cacheYoutubeVideo"});
useCookies = true;
return _gthis.getInfoAsync(url,useCookies).then(onGetInfo).catch(function(err) {
_gthis.cleanYtInputFiles(inVideoName);
diff --git a/res/css/des.css b/res/css/des.css
index 850b53c..746fb7b 100644
--- a/res/css/des.css
+++ b/res/css/des.css
@@ -120,6 +120,15 @@ textarea {
font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
}
+code {
+ background: var(--background-chat);
+ border: solid var(--border) 1px;
+ border-radius: .5rem;
+ padding: .25rem;
+ word-break: break-all;
+ display: inline-flex;
+}
+
input[type="text"]:focus,
input[type="password"]:focus,
button:focus,
diff --git a/res/langs/en.json b/res/langs/en.json
index 1cda8aa..a7ce267 100644
--- a/res/langs/en.json
+++ b/res/langs/en.json
@@ -11,7 +11,7 @@
"hintListRequestLeaderMouse": "(also use right mouse button for quick pause)",
"hintListRequestLeaderTouch": "(also use long tap for quick pause)",
"hintListOpenInApp": "$openInApp this server for better Android experience",
- "hintListHide": "$hideThisMessage and send <b>/help</b> in chat to see it again",
+ "hintListHide": "$hideThisMessage and send <code>/help</code> in chat to see it again",
"addVideos": "Add Videos",
"requestLeader": "Request Leader",
"openInApp": "Open in App",
@@ -61,7 +61,7 @@
"leaderDesc": "Request video control permissions",
"mobileViewBtn": "Mobile View",
"leader": "Leader",
- "enterAsGuest": "Enter As Guest",
+ "enterAsGuest": "Enter As Guest:",
"yourName": "Your Name",
"enterUserPassword": "Enter User Password",
"yourPassword": "Your Password",
diff --git a/res/langs/ru.json b/res/langs/ru.json
index f9c5303..7ae9138 100644
--- a/res/langs/ru.json
+++ b/res/langs/ru.json
@@ -11,7 +11,7 @@
"hintListRequestLeaderMouse": "(кстати, правая кнопка мыши сразу сделает паузу)",
"hintListRequestLeaderTouch": "(кстати, удерживайте кнопку для быстрой паузы)",
"hintListOpenInApp": "$openInApp этот сервер для лучшего опыта на Android",
- "hintListHide": "$hideThisMessage и отправлять <b>`/help`</b> в чат чтобы прочесть его снова",
+ "hintListHide": "$hideThisMessage и отправлять <code>/help</code> в чат чтобы прочесть его снова",
"addVideos": "Добавлять видео",
"requestLeader": "Запрашивать лидера",
"openInApp": "Открыть в приложении",
@@ -86,7 +86,7 @@
"fullscreenPlayer": "Полноэкранный режим видео",
"retrievePlaylistLinks": "Получить ссылки на видео из плейлиста",
"voteForSkip": "Голосовать за пропуск",
- "addAsTemporary": "Добавить как временный",
+ "addAsTemporary": "Добавить как временное",
"cacheOnServer": "Закэшировать на сервере",
"mediaUrl": "Ссылка на видео",
"optionalTitle": "Заголовок (опционально)",
diff --git a/src/server/cache/YoutubeCache.hx b/src/server/cache/YoutubeCache.hx
index 5b94bbb..4f74080 100644
--- a/src/server/cache/YoutubeCache.hx
+++ b/src/server/cache/YoutubeCache.hx
@@ -141,6 +141,8 @@ class YoutubeCache {
remuxVideo: "mp4",
cookies: useCookies ? getCookiesPathOrNull() : null,
forceIpv4: true,
+ socketTimeout: 2,
+ extractorRetries: 0,
onProgress: p -> {
final isFinished = p.status == "finished";
var ratio = if (isFinished) {
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage