mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-19 21:46:11 +05:00
torrent cards rewritten
This commit is contained in:
@@ -8,3 +8,6 @@ export function getPeerString(torrent) {
|
||||
if (!torrent || !torrent.connected_seeders) return ''
|
||||
return `[${torrent.connected_seeders}] ${torrent.active_peers} / ${torrent.total_peers}`
|
||||
}
|
||||
|
||||
export const shortenText = (text, sympolAmount) =>
|
||||
text.slice(0, sympolAmount) + (text.length > sympolAmount ? '...' : '')
|
||||
|
||||
Reference in New Issue
Block a user