diff --git a/web/src/components/Torrent.js b/web/src/components/Torrent.js index f302c6a..6bd696c 100644 --- a/web/src/components/Torrent.js +++ b/web/src/components/Torrent.js @@ -10,7 +10,7 @@ import ListItem from '@material-ui/core/ListItem' import DialogActions from '@material-ui/core/DialogActions' import Dialog from '@material-ui/core/Dialog' -import { humanizeSize } from '../utils/Utils' +import { getPeerString, humanizeSize } from '../utils/Utils' import DialogTorrentInfo from './DialogTorrentInfo' import { torrentsHost } from '../utils/Hosts' @@ -54,12 +54,13 @@ export default function Torrent(props) { }} > {torrent.poster && - {torrent.title} + } - {torrent.name ? torrent.name : torrent.title} + {torrent.title ? torrent.title : torrent.name} {torrent.torrent_size > 0 ? ' | ' + humanizeSize(torrent.torrent_size) : ''} {torrent.download_speed > 0 ? ' | ' + humanizeSize(torrent.download_speed) + '/sec' : ''} + {getPeerString(torrent) ? ' | ' + getPeerString(torrent) : '' }