diff options
author | Chocobozzz <me@florianbigard.com> | 2021-09-06 09:29:25 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-09-06 16:19:49 +0200 |
commit | 02b286f89088e07cac7e7068e884d3be0fd0098b (patch) | |
tree | c98e159e6ee4512bb7026d052f565fcecc840124 /server/models | |
parent | 70430c2796b6c0455a863edc62760a3d45951fc5 (diff) | |
download | PeerTube-02b286f89088e07cac7e7068e884d3be0fd0098b.tar.gz PeerTube-02b286f89088e07cac7e7068e884d3be0fd0098b.tar.zst PeerTube-02b286f89088e07cac7e7068e884d3be0fd0098b.zip |
More robust webtorrent redundancy download
Avoid issues with inconsistencies between magnet infohash and torrent
infohash, blocking webtorrent upload that will timeout
Diffstat (limited to 'server/models')
-rw-r--r-- | server/models/video/video-file.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/server/models/video/video-file.ts b/server/models/video/video-file.ts index 5e8d29d0a..106f9602b 100644 --- a/server/models/video/video-file.ts +++ b/server/models/video/video-file.ts | |||
@@ -194,6 +194,7 @@ export class VideoFileModel extends Model<Partial<AttributesOnly<VideoFileModel> | |||
194 | @Column | 194 | @Column |
195 | metadataUrl: string | 195 | metadataUrl: string |
196 | 196 | ||
197 | // Could be null for remote files | ||
197 | @AllowNull(true) | 198 | @AllowNull(true) |
198 | @Column | 199 | @Column |
199 | fileUrl: string | 200 | fileUrl: string |
@@ -203,6 +204,7 @@ export class VideoFileModel extends Model<Partial<AttributesOnly<VideoFileModel> | |||
203 | @Column | 204 | @Column |
204 | filename: string | 205 | filename: string |
205 | 206 | ||
207 | // Could be null for remote files | ||
206 | @AllowNull(true) | 208 | @AllowNull(true) |
207 | @Column | 209 | @Column |
208 | torrentUrl: string | 210 | torrentUrl: string |