feat: enhance torrent management with new table component and improved navigation

This commit is contained in:
maxDorninger
2025-05-21 20:19:59 +02:00
parent 0894772e86
commit eb9e1c6611
18 changed files with 197 additions and 115 deletions

View File

@@ -33,3 +33,13 @@ export function getFullyQualifiedShowName(show: { name: string; year: number }):
}
return name;
}
export function convertTorrentSeasonRangeToIntegerRange(torrent: any): string {
if (torrent.seasons.length === 1) return torrent.seasons[0]?.toString();
if (torrent.seasons.length >= 2) return torrent.seasons[0]?.toString() + "-" + torrent.seasons.at(-1).toString();
else {
console.log("Error parsing season range: " + torrent.seasons);
return "Error parsing season range: " + torrent.seasons;
}
}