From 28039ba33b24ccb94d8881ec2d92a5ae06085e0f Mon Sep 17 00:00:00 2001 From: YouROK <8yourok8@mail.ru> Date: Fri, 25 Dec 2020 12:22:20 +0300 Subject: [PATCH] add filter playable files --- web/src/components/DialogTorrentInfo.js | 76 ++++++++++++++++++++++++- 1 file changed, 74 insertions(+), 2 deletions(-) diff --git a/web/src/components/DialogTorrentInfo.js b/web/src/components/DialogTorrentInfo.js index bb05503..9fa9e51 100644 --- a/web/src/components/DialogTorrentInfo.js +++ b/web/src/components/DialogTorrentInfo.js @@ -60,8 +60,8 @@ export default function DialogTorrentInfo(props) { - {torrent.file_stats && - torrent.file_stats.map((file) => ( + {getPlayableFile(torrent) && + getPlayableFile(torrent).map((file) => (