Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Fix lint

Chocobozzzac940348cdb6
diff --git a/client/src/app/core/menu/menu.service.ts b/client/src/app/core/menu/menu.service.ts
index 46ef72e17d..ecb2bceb7d 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 452e43c8cc..62f589272e 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 bde4c2633f..ab1e917f3d 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.