Fix live infohash block

This commit is contained in:
Chocobozzz 2020-10-29 15:03:31 +01:00 committed by Chocobozzz
parent 284ef52911
commit d988e9a2f8
2 changed files with 1 additions and 2 deletions

View File

@ -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}`))

View File

@ -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