diff options
author | Chocobozzz <me@florianbigard.com> | 2018-05-29 18:30:11 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-05-29 18:30:11 +0200 |
commit | 02756fbd11190e75b8bed9fad5751027e2e0de49 (patch) | |
tree | f90d6182fbb6226cb319bd0cb759ec0ec3f05512 /client/src | |
parent | a20776fcbbe488475238228716cad370056ad5bd (diff) | |
download | PeerTube-02756fbd11190e75b8bed9fad5751027e2e0de49.tar.gz PeerTube-02756fbd11190e75b8bed9fad5751027e2e0de49.tar.zst PeerTube-02756fbd11190e75b8bed9fad5751027e2e0de49.zip |
Improve torrent/video download
Diffstat (limited to 'client/src')
-rw-r--r-- | client/src/app/videos/+video-watch/modal/video-download.component.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/client/src/app/videos/+video-watch/modal/video-download.component.ts b/client/src/app/videos/+video-watch/modal/video-download.component.ts index b06a7eef1..12f31b011 100644 --- a/client/src/app/videos/+video-watch/modal/video-download.component.ts +++ b/client/src/app/videos/+video-watch/modal/video-download.component.ts | |||
@@ -41,7 +41,7 @@ export class VideoDownloadComponent implements OnInit { | |||
41 | return | 41 | return |
42 | } | 42 | } |
43 | 43 | ||
44 | const link = this.downloadType === 'direct' ? file.fileUrl : file.torrentUrl | 44 | const link = this.downloadType === 'direct' ? file.fileDownloadUrl : file.torrentDownloadUrl |
45 | window.open(link) | 45 | window.location.assign(link) |
46 | } | 46 | } |
47 | } | 47 | } |