mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-06 03:50:26 +02:00
Put private videos under a specific subdirectory
This commit is contained in:
parent
38a3ccc7f8
commit
3545e72c68
105 changed files with 2929 additions and 1308 deletions
|
@ -342,8 +342,9 @@ export class VideosCommand extends AbstractCommand {
|
|||
async upload (options: OverrideCommandOptions & {
|
||||
attributes?: VideoEdit
|
||||
mode?: 'legacy' | 'resumable' // default legacy
|
||||
waitTorrentGeneration?: boolean // default true
|
||||
} = {}) {
|
||||
const { mode = 'legacy' } = options
|
||||
const { mode = 'legacy', waitTorrentGeneration } = options
|
||||
let defaultChannelId = 1
|
||||
|
||||
try {
|
||||
|
@ -377,7 +378,7 @@ export class VideosCommand extends AbstractCommand {
|
|||
|
||||
// Wait torrent generation
|
||||
const expectedStatus = this.buildExpectedStatus({ ...options, defaultExpectedStatus: HttpStatusCode.OK_200 })
|
||||
if (expectedStatus === HttpStatusCode.OK_200) {
|
||||
if (expectedStatus === HttpStatusCode.OK_200 && waitTorrentGeneration) {
|
||||
let video: VideoDetails
|
||||
|
||||
do {
|
||||
|
@ -692,6 +693,7 @@ export class VideosCommand extends AbstractCommand {
|
|||
'categoryOneOf',
|
||||
'licenceOneOf',
|
||||
'languageOneOf',
|
||||
'privacyOneOf',
|
||||
'tagsOneOf',
|
||||
'tagsAllOf',
|
||||
'isLocal',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue