aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-08-07 09:54:36 +0200
committerChocobozzz <me@florianbigard.com>2018-08-08 09:30:31 +0200
commit990b6a0b0c4fbebc165e5cf7cec8fbc1cbaa6c66 (patch)
tree8aaa0638798bfa14813f4d6ed5247242313b9ce6 /server/models
parentce33919c24e7402d92d81f3cd8e545df52d98240 (diff)
downloadPeerTube-990b6a0b0c4fbebc165e5cf7cec8fbc1cbaa6c66.tar.gz
PeerTube-990b6a0b0c4fbebc165e5cf7cec8fbc1cbaa6c66.tar.zst
PeerTube-990b6a0b0c4fbebc165e5cf7cec8fbc1cbaa6c66.zip
Import torrents with webtorrent
Diffstat (limited to 'server/models')
-rw-r--r--server/models/video/video-import.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/server/models/video/video-import.ts b/server/models/video/video-import.ts
index 55fca28b8..d6c02e5ac 100644
--- a/server/models/video/video-import.ts
+++ b/server/models/video/video-import.ts
@@ -171,7 +171,11 @@ export class VideoImportModel extends Model<VideoImportModel> {
171 171
172 return { 172 return {
173 id: this.id, 173 id: this.id,
174
174 targetUrl: this.targetUrl, 175 targetUrl: this.targetUrl,
176 magnetUri: this.magnetUri,
177 torrentName: this.torrentName,
178
175 state: { 179 state: {
176 id: this.state, 180 id: this.state,
177 label: VideoImportModel.getStateLabel(this.state) 181 label: VideoImportModel.getStateLabel(this.state)