aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/extra-utils/videos
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-07-08 10:55:16 +0200
committerChocobozzz <me@florianbigard.com>2021-07-20 15:27:17 +0200
commita1637fa1e25b60a88f7cfe50aac8953f50d55761 (patch)
tree4d0cc82eef618619a7bcb747812cc7b21e0d8776 /shared/extra-utils/videos
parent04aed76711909507e74905bde3a7fa024d3585c9 (diff)
downloadPeerTube-a1637fa1e25b60a88f7cfe50aac8953f50d55761.tar.gz
PeerTube-a1637fa1e25b60a88f7cfe50aac8953f50d55761.tar.zst
PeerTube-a1637fa1e25b60a88f7cfe50aac8953f50d55761.zip
Specify if we want to fallback to the server token
Diffstat (limited to 'shared/extra-utils/videos')
-rw-r--r--shared/extra-utils/videos/live-command.ts3
-rw-r--r--shared/extra-utils/videos/services-command.ts1
2 files changed, 4 insertions, 0 deletions
diff --git a/shared/extra-utils/videos/live-command.ts b/shared/extra-utils/videos/live-command.ts
index e36c632ee..4f03c9127 100644
--- a/shared/extra-utils/videos/live-command.ts
+++ b/shared/extra-utils/videos/live-command.ts
@@ -23,6 +23,7 @@ export class LiveCommand extends AbstractCommand {
23 ...options, 23 ...options,
24 24
25 path: path + '/' + options.videoId, 25 path: path + '/' + options.videoId,
26 implicitToken: true,
26 defaultExpectedStatus: HttpStatusCode.OK_200 27 defaultExpectedStatus: HttpStatusCode.OK_200
27 }) 28 })
28 } 29 }
@@ -39,6 +40,7 @@ export class LiveCommand extends AbstractCommand {
39 40
40 path: path + '/' + videoId, 41 path: path + '/' + videoId,
41 fields, 42 fields,
43 implicitToken: true,
42 defaultExpectedStatus: HttpStatusCode.NO_CONTENT_204 44 defaultExpectedStatus: HttpStatusCode.NO_CONTENT_204
43 }) 45 })
44 } 46 }
@@ -59,6 +61,7 @@ export class LiveCommand extends AbstractCommand {
59 path, 61 path,
60 attaches, 62 attaches,
61 fields: omit(fields, 'thumbnailfile', 'previewfile'), 63 fields: omit(fields, 'thumbnailfile', 'previewfile'),
64 implicitToken: true,
62 defaultExpectedStatus: HttpStatusCode.OK_200 65 defaultExpectedStatus: HttpStatusCode.OK_200
63 })) 66 }))
64 67
diff --git a/shared/extra-utils/videos/services-command.ts b/shared/extra-utils/videos/services-command.ts
index 3b618ef66..313b7878c 100644
--- a/shared/extra-utils/videos/services-command.ts
+++ b/shared/extra-utils/videos/services-command.ts
@@ -22,6 +22,7 @@ export class ServicesCommand extends AbstractCommand {
22 22
23 path, 23 path,
24 query, 24 query,
25 implicitToken: false,
25 defaultExpectedStatus: HttpStatusCode.OK_200 26 defaultExpectedStatus: HttpStatusCode.OK_200
26 }) 27 })
27 } 28 }