Use token parameter for file downloads
This commit is contained in:
parent
ff86be7276
commit
333aaa6116
|
@ -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("/");
|
||||||
|
|
Loading…
Reference in New Issue
Block a user