aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/video
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-07-15 09:22:57 +0200
committerChocobozzz <chocobozzz@cpy.re>2019-07-24 10:58:16 +0200
commit30ff39e7f07898ebb716c938123825c678b4e5af (patch)
tree338b55203ee757a0e5e3f2e449536b925c677556 /server/models/video
parentb2195fafc292d6761c25fe51ca4e0328ab403424 (diff)
downloadPeerTube-30ff39e7f07898ebb716c938123825c678b4e5af.tar.gz
PeerTube-30ff39e7f07898ebb716c938123825c678b4e5af.tar.zst
PeerTube-30ff39e7f07898ebb716c938123825c678b4e5af.zip
Move createTorrent in webtorrent utils
Diffstat (limited to 'server/models/video')
-rw-r--r--server/models/video/video.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/models/video/video.ts b/server/models/video/video.ts
index 92d07b5bc..ec3d5ddb0 100644
--- a/server/models/video/video.ts
+++ b/server/models/video/video.ts
@@ -40,7 +40,7 @@ import { UserRight, VideoPrivacy, VideoState } from '../../../shared'
40import { VideoTorrentObject } from '../../../shared/models/activitypub/objects' 40import { VideoTorrentObject } from '../../../shared/models/activitypub/objects'
41import { Video, VideoDetails, VideoFile } from '../../../shared/models/videos' 41import { Video, VideoDetails, VideoFile } from '../../../shared/models/videos'
42import { VideoFilter } from '../../../shared/models/videos/video-query.type' 42import { VideoFilter } from '../../../shared/models/videos/video-query.type'
43import { createTorrentPromise, peertubeTruncate } from '../../helpers/core-utils' 43import { peertubeTruncate } from '../../helpers/core-utils'
44import { isActivityPubUrlValid } from '../../helpers/custom-validators/activitypub/misc' 44import { isActivityPubUrlValid } from '../../helpers/custom-validators/activitypub/misc'
45import { isArray, isBooleanValid } from '../../helpers/custom-validators/misc' 45import { isArray, isBooleanValid } from '../../helpers/custom-validators/misc'
46import { 46import {
@@ -117,6 +117,7 @@ import { VideoPlaylistElementModel } from './video-playlist-element'
117import { CONFIG } from '../../initializers/config' 117import { CONFIG } from '../../initializers/config'
118import { ThumbnailModel } from './thumbnail' 118import { ThumbnailModel } from './thumbnail'
119import { ThumbnailType } from '../../../shared/models/videos/thumbnail.type' 119import { ThumbnailType } from '../../../shared/models/videos/thumbnail.type'
120import { createTorrentPromise } from '../../helpers/webtorrent'
120 121
121// FIXME: Define indexes here because there is an issue with TS and Sequelize.literal when called directly in the annotation 122// FIXME: Define indexes here because there is an issue with TS and Sequelize.literal when called directly in the annotation
122const indexes: (ModelIndexesOptions & { where?: WhereOptions })[] = [ 123const indexes: (ModelIndexesOptions & { where?: WhereOptions })[] = [