1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-03 09:49:20 +02:00

Support CLI move of original video file

This commit is contained in:
Chocobozzz 2024-06-04 09:08:24 +02:00
parent 54c140c800
commit 96b9748585
No known key found for this signature in database
GPG key ID: 583A612D890159BE
6 changed files with 129 additions and 33 deletions

View file

@ -166,9 +166,10 @@ export function makePutBodyRequest (options: {
// ---------------------------------------------------------------------------
export async function getRedirectionUrl (url: string) {
export async function getRedirectionUrl (url: string, token?: string) {
const res = await makeRawRequest({
url,
token,
redirects: 0,
expectedStatus: HttpStatusCode.FOUND_302
})