Skip to content

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

Fix live infohash block

Chocobozzzd988e9a2f83d
diff --git a/server/controllers/tracker.ts b/server/controllers/tracker.ts
index c962fada52..d09b19cae8 100644
--- a/server/controllers/tracker.ts
+++ b/server/controllers/tracker.ts
@@ -51,7 +51,7 @@ const trackerServer = new TrackerServer({
const videoFileExists = await VideoFileModel.doesInfohashExistCached(infoHash)
if (videoFileExists === true) return cb()
- const playlistExists = await VideoStreamingPlaylistModel.doesInfohashExist(infoHash)
+ const playlistExists = await VideoStreamingPlaylistModel.doesInfohashExistCached(infoHash)
if (playlistExists === true) return cb()
cb(new Error(`Unknown infoHash ${infoHash} requested by ip ${ip}`))
diff --git a/server/helpers/ffmpeg-utils.ts b/server/helpers/ffmpeg-utils.ts
index b063cedcb3..b985988d3c 100644
--- a/server/helpers/ffmpeg-utils.ts
+++ b/server/helpers/ffmpeg-utils.ts
@@ -8,7 +8,6 @@ import { CONFIG } from '../initializers/config'
import { FFMPEG_NICE, VIDEO_LIVE, VIDEO_TRANSCODING_FPS } from '../initializers/constants'
import { processImage } from './image-utils'
import { logger } from './logger'
-import { concat } from 'lodash'
/**
* A toolbox to play with audio