Release v2.1.52 with readable account storage and verified usage percentages
CI / verify (push) Canceled after 0s

This commit is contained in:
Sucukdeluxe committed 2026-09-29 12:08:04 +02:00
1 parent a9f4b69ba7
commit c3a6a20b67
7 files changed
+25 -9

No files matched your search

+1 -1
View File
@@ -15,7 +15,7 @@ function parseVoeAccountStorage(html) {
if (spans.length !== 2 || !/\bfloat-end\b/.test(spans[1][1])) continue;
const used = parseStorageAmount(spans[0][2]);
const total = parseStorageAmount(spans[1][2]);
if (used && total && total.value > 0) return { used, total };
if (used && total && total.value > 0) return { used, total, unitBase: 1024 };
}
return null;
}
+2 -2
View File
@@ -1,12 +1,12 @@
{
"name": "multi-hoster-uploader",
"version": "2.1.51",
"version": "2.1.52",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "multi-hoster-uploader",
"version": "2.1.51",
"version": "2.1.52",
"dependencies": {
"chokidar": "^3.6.0",
"undici": "^7.29.0",
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "multi-hoster-uploader",
"version": "2.1.51",
"version": "2.1.52",
"description": "Upload files to doodstream, voe, vidmoly, byse simultaneously",
"main": "main.js",
"scripts": {
+13 -1
View File
@@ -62,7 +62,19 @@
const used = formatAmount(storage?.used);
const total = formatAmount(storage?.total);
if (!used || !total || storage.total.value <= 0) return null;
return `${used} ${String(locale).startsWith('de') ? 'von' : 'of'} ${total}`;
const toBytes = amount => {
const exponent = 'BKMGTPE'.indexOf(amount.unit[0]);
const base = amount.unit.includes('I') ? 1024 : storage.unitBase;
if (exponent > 0 && base !== 1024 && base !== 1000) return null;
return amount.value * (exponent === 0 ? 1 : base ** exponent);
};
const usedBytes = toBytes(storage.used);
const totalBytes = toBytes(storage.total);
const percent = Number.isFinite(usedBytes) && Number.isFinite(totalBytes) && totalBytes > 0 ? usedBytes / totalBytes * 100 : null;
const percentageText = percent !== null && Number.isFinite(percent)
? ` (${new Intl.NumberFormat(locale, { maximumFractionDigits: 1 }).format(percent)}%)`
: '';
return `${used} ${String(locale).startsWith('de') ? 'von' : 'of'} ${total}${percentageText}`;
}
const accountStatus = {
+1 -1
View File
@@ -7614,7 +7614,7 @@ function _buildAccountCardHtml(name, account, idx) {
const checkLabel = statusPresentation.requiresOtp ? 'Neuen Code anfordern' : 'Prüfen';
const storageText = name === 'voe.sx' ? window.AccountStatus.formatAccountStorage(st.storage, getUiLocale()) : null;
const storageHtml = storageText
? `<div class="account-card-storage">${escapeHtml(localizeUiText('Speicher'))}: ${escapeHtml(storageText)}</div>`
? `<div class="account-card-storage"><svg class="account-storage-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false"><path d="M5 4h14l3 11v4a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1v-4L5 4Z"/><path d="M2 15h20M6 18h.01M10 18h.01"/></svg><span>${escapeHtml(localizeUiText('Speicher'))}: ${escapeHtml(storageText)}</span></div>`
: '';
const sessionPauseKey = `${name}:${account.id}`;
+6 -3
View File
@@ -1531,18 +1531,21 @@ select.hs-input { max-width: none; width: auto; min-width: 140px; }
}
.account-card:hover { background: var(--bg-card-hover); }
.account-card-info { flex: 1; min-width: 0; }
.account-card-storage { font-size: 12px; color: var(--text-muted); margin-top: 4px; overflow-wrap: anywhere; }
.account-card-storage { display: flex; align-items: flex-start; gap: 7px; font-size: 13px; line-height: 1.5; color: var(--text-muted); margin-top: 5px; overflow-wrap: anywhere; }
.account-card-storage > span { min-width: 0; }
.account-storage-icon { width: 17px; height: 17px; flex: 0 0 17px; margin-top: 1px; }
.account-card-title { font-size: 14px; font-weight: 600; }
.account-card-subtitle { font-size: 11px; color: var(--text-muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-card-subtitle { font-size: 13px; line-height: 1.5; color: var(--text-muted); margin-top: 3px; overflow-wrap: anywhere; }
.account-otp-action { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.account-otp-input { width: 150px; min-height: 28px; padding: 5px 8px; font-size: 11px; }
.account-card-actions { display: flex; gap: 6px; flex-shrink: 0; }
.account-card .account-status { font-size: 12px; }
.account-status {
display: inline-flex;
align-items: center;
gap: 5px;
font-size: 11px;
font-size: 12px;
padding: 3px 10px;
border-radius: 4px;
font-weight: 600;
+1
View File
@@ -70,6 +70,7 @@ const sourceFiles = [
'lib/upload-manager.js',
'lib/vidmoly-upload.js',
'lib/voe-upload.js',
'lib/voe-account-storage.js',
'lib/webhook-notify.js',
'main.js',
'package-lock.json',