mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2024-12-01 21:09:17 -06:00
Fix live infohash block
This commit is contained in:
parent
284ef52911
commit
d988e9a2f8
@ -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}`))
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user