diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-06-05 21:53:49 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-06-05 21:53:49 +0200 |
commit | 4d4e5cd4dca78480ec7f40e747f424cd107376a4 (patch) | |
tree | 1b132aab503751ae0f4c8ee6c7595ad2d65f3a50 /server/models | |
parent | e02643f32e4c97ca307f8fc5b69be79c40d70a3b (diff) | |
download | PeerTube-4d4e5cd4dca78480ec7f40e747f424cd107376a4.tar.gz PeerTube-4d4e5cd4dca78480ec7f40e747f424cd107376a4.tar.zst PeerTube-4d4e5cd4dca78480ec7f40e747f424cd107376a4.zip |
require -> import
Diffstat (limited to 'server/models')
-rw-r--r-- | server/models/video.ts | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/server/models/video.ts b/server/models/video.ts index 9284dfeba..5558a7c3b 100644 --- a/server/models/video.ts +++ b/server/models/video.ts | |||
@@ -1,12 +1,12 @@ | |||
1 | import safeBuffer = require('safe-buffer') | 1 | import * as safeBuffer from 'safe-buffer' |
2 | const Buffer = safeBuffer.Buffer | 2 | const Buffer = safeBuffer.Buffer |
3 | import createTorrent = require('create-torrent') | 3 | import * as createTorrent from 'create-torrent' |
4 | import ffmpeg = require('fluent-ffmpeg') | 4 | import * as ffmpeg from 'fluent-ffmpeg' |
5 | import fs = require('fs') | 5 | import * as fs from 'fs' |
6 | import magnetUtil = require('magnet-uri') | 6 | import * as magnetUtil from 'magnet-uri' |
7 | import { map, values } from 'lodash' | 7 | import { map, values } from 'lodash' |
8 | import { parallel, series } from 'async' | 8 | import { parallel, series } from 'async' |
9 | import parseTorrent = require('parse-torrent') | 9 | import * as parseTorrent from 'parse-torrent' |
10 | import { join } from 'path' | 10 | import { join } from 'path' |
11 | import * as Sequelize from 'sequelize' | 11 | import * as Sequelize from 'sequelize' |
12 | 12 | ||