Merge pull request #30 from Luminarys/master
Use token parameter for file downloads
This commit is contained in:
commit
a508531289
|
@ -28,7 +28,7 @@ import selectTorrent, {
|
|||
import { updateResource } from '../actions/resources';
|
||||
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) {
|
||||
const parts = path.split("/");
|
||||
|
|
Loading…
Reference in New Issue
Block a user