diff --git a/src/ui/torrent_details.js b/src/ui/torrent_details.js index c1c7458..8c82c48 100644 --- a/src/ui/torrent_details.js +++ b/src/ui/torrent_details.js @@ -28,7 +28,7 @@ import selectTorrent, { import { updateResource } from '../actions/resources'; import { formatBitrate } from '../bitrate'; -const dlURI = (uri, password, id) => `${uri.replace('ws', 'http')}/dl/${id}?password=${encodeURIComponent(password)}`; +const dlURI = (uri, token, id) => `${uri.replace('ws', 'http')}/dl/${id}?password=${encodeURIComponent(token)}`; function basename(path) { const parts = path.split("/"); @@ -36,7 +36,8 @@ function basename(path) { } function File({ dispatch, file }) { - const { uri, password } = store.getState().socket; + const { uri } = store.getState().socket; + const { download_token } = store.getState().server; return (