diff options
author | Chocobozzz <me@florianbigard.com> | 2019-11-15 15:06:03 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-11-25 10:59:43 +0100 |
commit | d7a25329f9e607894d29ab342b9cb66638b56dc0 (patch) | |
tree | 6cd6bc4f2689f78944238b313c93427423a932ac /server/helpers/video.ts | |
parent | 14981d7331da3f63fe6cfaf020ccb7c910006eaf (diff) | |
download | PeerTube-d7a25329f9e607894d29ab342b9cb66638b56dc0.tar.gz PeerTube-d7a25329f9e607894d29ab342b9cb66638b56dc0.tar.zst PeerTube-d7a25329f9e607894d29ab342b9cb66638b56dc0.zip |
Add ability to disable webtorrent
In favour of HLS
Diffstat (limited to 'server/helpers/video.ts')
-rw-r--r-- | server/helpers/video.ts | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/server/helpers/video.ts b/server/helpers/video.ts index d066e2b1f..5b9c026b1 100644 --- a/server/helpers/video.ts +++ b/server/helpers/video.ts | |||
@@ -45,10 +45,6 @@ function fetchVideoByUrl (url: string, fetchType: VideoFetchByUrlType): Bluebird | |||
45 | if (fetchType === 'only-video') return VideoModel.loadByUrl(url) | 45 | if (fetchType === 'only-video') return VideoModel.loadByUrl(url) |
46 | } | 46 | } |
47 | 47 | ||
48 | function getVideo (res: Response) { | ||
49 | return res.locals.videoAll || res.locals.onlyVideo || res.locals.onlyVideoWithRights || res.locals.videoId | ||
50 | } | ||
51 | |||
52 | function getVideoWithAttributes (res: Response) { | 48 | function getVideoWithAttributes (res: Response) { |
53 | return res.locals.videoAll || res.locals.onlyVideo || res.locals.onlyVideoWithRights | 49 | return res.locals.videoAll || res.locals.onlyVideo || res.locals.onlyVideoWithRights |
54 | } | 50 | } |
@@ -57,7 +53,6 @@ export { | |||
57 | VideoFetchType, | 53 | VideoFetchType, |
58 | VideoFetchByUrlType, | 54 | VideoFetchByUrlType, |
59 | fetchVideo, | 55 | fetchVideo, |
60 | getVideo, | ||
61 | getVideoWithAttributes, | 56 | getVideoWithAttributes, |
62 | fetchVideoByUrl | 57 | fetchVideoByUrl |
63 | } | 58 | } |