]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Fix lint
authorChocobozzz <me@florianbigard.com>
Tue, 10 Mar 2020 15:37:25 +0000 (16:37 +0100)
committerChocobozzz <me@florianbigard.com>
Tue, 10 Mar 2020 15:37:25 +0000 (16:37 +0100)
client/src/app/core/menu/menu.service.ts
server/lib/activitypub/videos.ts
server/lib/video-transcoding.ts

index 46ef72e17d37ba8c7900490650dbce59342a5f1c..ecb2bceb7d4768fcf3cb5bd148ffb10c77111574 100644 (file)
@@ -8,7 +8,7 @@ export class MenuService {
   isMenuDisplayed = true
   isMenuChangedByUser = false
 
-  constructor(
+  constructor (
     private screenService: ScreenService
   ) {
     // Do not display menu on small screens
index 452e43c8cca9022ad22d333e141bd3c68cddda37..62f589272e8fdfdfbdda3767bbe9e74a5753d1ad 100644 (file)
@@ -9,13 +9,12 @@ import {
   ActivityPlaylistUrlObject,
   ActivityTagObject,
   ActivityUrlObject,
-  ActivityVideoFileMetadataObject,
   ActivityVideoUrlObject,
   VideoState
 } from '../../../shared/index'
 import { VideoTorrentObject } from '../../../shared/models/activitypub/objects'
 import { VideoPrivacy } from '../../../shared/models/videos'
-import { sanitizeAndCheckVideoTorrentObject, isAPVideoFileMetadataObject } from '../../helpers/custom-validators/activitypub/videos'
+import { isAPVideoFileMetadataObject, sanitizeAndCheckVideoTorrentObject } from '../../helpers/custom-validators/activitypub/videos'
 import { isVideoFileInfoHashValid } from '../../helpers/custom-validators/videos'
 import { deleteNonExistingModels, resetSequelizeInstance, retryTransactionWrapper } from '../../helpers/database-utils'
 import { logger } from '../../helpers/logger'
index bde4c2633ff1de483593afbe905d3e4ed953743f..ab1e917f3dce4f6a46ac87af46be36bea3f1913f 100644 (file)
@@ -2,8 +2,8 @@ import { HLS_STREAMING_PLAYLIST_DIRECTORY, P2P_MEDIA_LOADER_PEER_VERSION, WEBSER
 import { basename, extname as extnameUtil, join } from 'path'
 import {
   canDoQuickTranscode,
-  getMetadataFromFile,
   getDurationFromVideoFile,
+  getMetadataFromFile,
   getVideoFileFPS,
   transcode,
   TranscodeOptions,
@@ -20,7 +20,6 @@ import { CONFIG } from '../initializers/config'
 import { MStreamingPlaylistFilesVideo, MVideoFile, MVideoWithAllFiles, MVideoWithFile } from '@server/typings/models'
 import { createTorrentAndSetInfoHash } from '@server/helpers/webtorrent'
 import { generateVideoStreamingPlaylistName, getVideoFilename, getVideoFilePath } from './video-paths'
-import { extractVideo } from './videos'
 
 /**
  * Optimize the original video file and replace it. The resolution is not changed.