From: Chocobozzz Date: Tue, 10 Mar 2020 15:37:25 +0000 (+0100) Subject: Fix lint X-Git-Tag: v2.2.0-rc.1~386 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=ac940348cdb6ea6d86a80e37b464b754826cb9ad;hp=482fa503e545e00252e25eee7b3e0f7d421cf9d4;p=github%2FChocobozzz%2FPeerTube.git Fix lint --- diff --git a/client/src/app/core/menu/menu.service.ts b/client/src/app/core/menu/menu.service.ts index 46ef72e17..ecb2bceb7 100644 --- a/client/src/app/core/menu/menu.service.ts +++ b/client/src/app/core/menu/menu.service.ts @@ -8,7 +8,7 @@ export class MenuService { isMenuDisplayed = true isMenuChangedByUser = false - constructor( + constructor ( private screenService: ScreenService ) { // Do not display menu on small screens diff --git a/server/lib/activitypub/videos.ts b/server/lib/activitypub/videos.ts index 452e43c8c..62f589272 100644 --- a/server/lib/activitypub/videos.ts +++ b/server/lib/activitypub/videos.ts @@ -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' diff --git a/server/lib/video-transcoding.ts b/server/lib/video-transcoding.ts index bde4c2633..ab1e917f3 100644 --- a/server/lib/video-transcoding.ts +++ b/server/lib/video-transcoding.ts @@ -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.