Compare commits
No commits in common. "5d43923217e98d41e514a560a9f9b436a4b7a52d" and "7ea718ee2770a1d140f5d610d0b548cab30b00d1" have entirely different histories.
5d43923217
...
7ea718ee27
@ -201,16 +201,10 @@ class VidmolyUploader {
|
|||||||
yield epilogueBuf;
|
yield epilogueBuf;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Transit server lives on a different domain (*.vmwesa.online) and runs
|
// Transit server lives on a different domain (*.vmwesa.online). Browsers
|
||||||
// the nginx-upload-progress module. It requires an X-Progress-ID query
|
// don't send vidmoly.me cookies across origins, so we don't either.
|
||||||
// parameter on the POST URL — without it the upload hangs at the final
|
// Origin + Referer match the browser's actual upload headers.
|
||||||
// byte because the module can't finalize the session. Browsers append it
|
const { body, statusCode, headers } = await request(uploadUrl, {
|
||||||
// automatically before submitting the form.
|
|
||||||
const progressId = Date.now().toString() + Math.floor(Math.random() * 1e6).toString().padStart(6, '0');
|
|
||||||
const targetUrl = uploadUrl + (uploadUrl.includes('?') ? '&' : '?') + 'X-Progress-ID=' + progressId;
|
|
||||||
|
|
||||||
// Browsers don't send vidmoly.me cookies across origins, so we don't either.
|
|
||||||
const { body, statusCode, headers } = await request(targetUrl, {
|
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
body: generate(),
|
body: generate(),
|
||||||
signal,
|
signal,
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "multi-hoster-uploader",
|
"name": "multi-hoster-uploader",
|
||||||
"version": "3.0.0",
|
"version": "2.9.9",
|
||||||
"description": "Upload files to doodstream, voe, vidmoly, byse simultaneously",
|
"description": "Upload files to doodstream, voe, vidmoly, byse simultaneously",
|
||||||
"main": "main.js",
|
"main": "main.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user