]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - server/lib/videos.ts
Add ability to disable webtorrent
[github/Chocobozzz/PeerTube.git] / server / lib / videos.ts
CommitLineData
d7a25329
C
1import { isStreamingPlaylist, MStreamingPlaylistVideo, MVideo } from '@server/typings/models'
2
3function extractVideo (videoOrPlaylist: MVideo | MStreamingPlaylistVideo) {
4 return isStreamingPlaylist(videoOrPlaylist)
5 ? videoOrPlaylist.Video
6 : videoOrPlaylist
7}
8
9export {
10 extractVideo
11}