Compare commits

..

No commits in common. "576be53b839e12bd55c702dd9a1d508bc92b7f50" and "541860db0a9ff36b3ebc9e15f928039f5ae0776e" have entirely different histories.

2 changed files with 2 additions and 20 deletions

View File

@ -1,6 +1,6 @@
{
"name": "real-debrid-downloader",
"version": "1.7.0",
"version": "1.6.99",
"description": "Desktop downloader",
"main": "build/main/main/main.js",
"author": "Sucukdeluxe",

View File

@ -784,24 +784,6 @@ function providerLabelWithMode(provider: DebridProvider, settings: AppSettings):
return opt?.modeLabel ? `${base} (${opt.modeLabel})` : base;
}
function compactProviderLabels(labels: string[]): string {
const unique = [...new Set(labels)];
const groups = new Map<string, string[]>();
for (const label of unique) {
const m = label.match(/^(.+?)\s*\((.+)\)$/);
if (m) {
const arr = groups.get(m[1]) || [];
arr.push(m[2]);
groups.set(m[1], arr);
} else {
groups.set(label, []);
}
}
return [...groups.entries()].map(([base, details]) =>
details.length === 0 ? base : `${base} (${details.join(" + ")})`
).join(", ");
}
function formatDateTime(ts: number): string {
if (!ts) return "";
const d = new Date(ts);
@ -5179,7 +5161,7 @@ const PackageCard = memo(function PackageCard({ pkg, items, packageSpeed, isFirs
return <span key={col} className="pkg-col pkg-col-hoster" title={hosterText}>{hosterText}</span>;
}
case "account": {
const accountText = compactProviderLabels(items.map((item) => item.providerLabel || (item.provider ? providerLabels[item.provider] : "")).filter(Boolean));
const accountText = [...new Set(items.map((item) => item.providerLabel || (item.provider ? providerLabels[item.provider] : null)).filter(Boolean))].join(", ");
return <span key={col} className="pkg-col pkg-col-account" title={accountText}>{accountText}</span>;
}
case "prio": return (