diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-10-09 11:06:13 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-10-09 11:17:36 +0200 |
commit | 14d3270f363245d2c83fcc2ac109e39743b5627e (patch) | |
tree | 22a1d40675d372d53c35a4d7adf1fc1b4ceb1799 /server/initializers/constants.ts | |
parent | aa8b6df4a51c82eb91e6fd71a090b2128098af6b (diff) | |
download | PeerTube-14d3270f363245d2c83fcc2ac109e39743b5627e.tar.gz PeerTube-14d3270f363245d2c83fcc2ac109e39743b5627e.tar.zst PeerTube-14d3270f363245d2c83fcc2ac109e39743b5627e.zip |
Change how we handle resolution
It was an enum before, now we just use video height
Diffstat (limited to 'server/initializers/constants.ts')
-rw-r--r-- | server/initializers/constants.ts | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts index f87041a3f..b11575b34 100644 --- a/server/initializers/constants.ts +++ b/server/initializers/constants.ts | |||
@@ -189,16 +189,6 @@ const VIDEO_LANGUAGES = { | |||
189 | 14: 'Italian' | 189 | 14: 'Italian' |
190 | } | 190 | } |
191 | 191 | ||
192 | // TODO: use VideoResolution when https://github.com/Microsoft/TypeScript/issues/13042 is fixed | ||
193 | const VIDEO_FILE_RESOLUTIONS: { [ id: number ]: string } = { | ||
194 | 0: 'original', | ||
195 | 240: '240p', | ||
196 | 360: '360p', | ||
197 | 480: '480p', | ||
198 | 720: '720p', | ||
199 | 1080: '1080p' | ||
200 | } | ||
201 | |||
202 | // --------------------------------------------------------------------------- | 192 | // --------------------------------------------------------------------------- |
203 | 193 | ||
204 | // Score a pod has when we create it as a friend | 194 | // Score a pod has when we create it as a friend |
@@ -385,7 +375,6 @@ export { | |||
385 | THUMBNAILS_SIZE, | 375 | THUMBNAILS_SIZE, |
386 | USER_ROLES, | 376 | USER_ROLES, |
387 | VIDEO_CATEGORIES, | 377 | VIDEO_CATEGORIES, |
388 | VIDEO_FILE_RESOLUTIONS, | ||
389 | VIDEO_LANGUAGES, | 378 | VIDEO_LANGUAGES, |
390 | VIDEO_LICENCES, | 379 | VIDEO_LICENCES, |
391 | VIDEO_RATE_TYPES | 380 | VIDEO_RATE_TYPES |