Merge pull request #30 from Luminarys/master

Use token parameter for file downloads
This commit is contained in:
Drew DeVault 2018-02-18 17:19:17 -05:00 committed by GitHub
commit a508531289
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -28,7 +28,7 @@ import selectTorrent, {
import { updateResource } from '../actions/resources'; import { updateResource } from '../actions/resources';
import { formatBitrate } from '../bitrate'; import { formatBitrate } from '../bitrate';
const dlURI = (uri, token, id) => `${uri.replace('ws', 'http')}/dl/${id}?password=${encodeURIComponent(token)}`; const dlURI = (uri, token, id) => `${uri.replace('ws', 'http')}/dl/${id}?token=${encodeURIComponent(token)}`;
function basename(path) { function basename(path) {
const parts = path.split("/"); const parts = path.split("/");