mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 19:42:24 +02:00
Add storyboard support
This commit is contained in:
parent
1fb7d09422
commit
d8f39b126d
79 changed files with 1476 additions and 100 deletions
|
@ -159,6 +159,10 @@ export class ConfigCommand extends AbstractCommand {
|
|||
newConfig: {
|
||||
transcoding: {
|
||||
enabled: true,
|
||||
|
||||
allowAudioFiles: true,
|
||||
allowAdditionalExtensions: true,
|
||||
|
||||
resolutions: {
|
||||
...ConfigCommand.getCustomConfigResolutions(false),
|
||||
|
||||
|
@ -368,6 +372,9 @@ export class ConfigCommand extends AbstractCommand {
|
|||
},
|
||||
torrents: {
|
||||
size: 4
|
||||
},
|
||||
storyboards: {
|
||||
size: 5
|
||||
}
|
||||
},
|
||||
signup: {
|
||||
|
|
|
@ -33,6 +33,8 @@ async function waitJobs (
|
|||
|
||||
// Check if each server has pending request
|
||||
for (const server of servers) {
|
||||
if (process.env.DEBUG) console.log('Checking ' + server.url)
|
||||
|
||||
for (const state of states) {
|
||||
|
||||
const jobPromise = server.jobs.list({
|
||||
|
@ -45,6 +47,10 @@ async function waitJobs (
|
|||
.then(jobs => {
|
||||
if (jobs.length !== 0) {
|
||||
pendingRequests = true
|
||||
|
||||
if (process.env.DEBUG) {
|
||||
console.log(jobs)
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
|
@ -55,6 +61,10 @@ async function waitJobs (
|
|||
.then(obj => {
|
||||
if (obj.activityPubMessagesWaiting !== 0) {
|
||||
pendingRequests = true
|
||||
|
||||
if (process.env.DEBUG) {
|
||||
console.log('AP messages waiting: ' + obj.activityPubMessagesWaiting)
|
||||
}
|
||||
}
|
||||
})
|
||||
tasks.push(debugPromise)
|
||||
|
@ -65,12 +75,15 @@ async function waitJobs (
|
|||
for (const job of data) {
|
||||
if (job.state.id !== RunnerJobState.COMPLETED) {
|
||||
pendingRequests = true
|
||||
|
||||
if (process.env.DEBUG) {
|
||||
console.log(job)
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
tasks.push(runnerJobsPromise)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
return tasks
|
||||
|
|
|
@ -35,6 +35,7 @@ import {
|
|||
VideoPasswordsCommand,
|
||||
PlaylistsCommand,
|
||||
ServicesCommand,
|
||||
StoryboardCommand,
|
||||
StreamingPlaylistsCommand,
|
||||
VideosCommand,
|
||||
VideoStudioCommand,
|
||||
|
@ -149,6 +150,8 @@ export class PeerTubeServer {
|
|||
registrations?: RegistrationsCommand
|
||||
videoPasswords?: VideoPasswordsCommand
|
||||
|
||||
storyboard?: StoryboardCommand
|
||||
|
||||
runners?: RunnersCommand
|
||||
runnerRegistrationTokens?: RunnerRegistrationTokensCommand
|
||||
runnerJobs?: RunnerJobsCommand
|
||||
|
@ -436,6 +439,8 @@ export class PeerTubeServer {
|
|||
this.videoToken = new VideoTokenCommand(this)
|
||||
this.registrations = new RegistrationsCommand(this)
|
||||
|
||||
this.storyboard = new StoryboardCommand(this)
|
||||
|
||||
this.runners = new RunnersCommand(this)
|
||||
this.runnerRegistrationTokens = new RunnerRegistrationTokensCommand(this)
|
||||
this.runnerJobs = new RunnerJobsCommand(this)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue