Now audio and video plugins suports HTTPS

This commit is contained in:
synt-xerror
2026-04-21 13:29:22 -03:00
parent d5ebab1f49
commit 2f6e7ec5f6
2 changed files with 4 additions and 4 deletions

View File

@@ -23,7 +23,7 @@ logStream.on("error", err => console.error("[logStream]", err));
const DOWNLOADS_DIR = path.resolve("downloads");
const YT_DLP = "yt-dlp";
const FFMPEG = "ffmpeg";
const UPLOAD_URL = "http://maneos.net/upload";
const UPLOAD_URL = "https://maneos.net/upload";
const execFileAsync = promisify(execFile);
@@ -122,7 +122,7 @@ async function uploadToServer(filePath) {
throw new Error("Server response missing url");
}
return result.url.startsWith("http") ? result.url : `http://maneos.net${result.url}`;
return result.url.startsWith("https") ? result.url : `https://maneos.net${result.url}`;
}
export default async function ({ msg, api }) {

View File

@@ -20,7 +20,7 @@ logStream.on("error", err => console.error("[logStream]", err));
const DOWNLOADS_DIR = path.resolve("downloads");
const YT_DLP = "yt-dlp";
const UPLOAD_URL = "http://maneos.net/upload";
const UPLOAD_URL = "https://maneos.net/upload";
const ARGS_BASE = [
"--extractor-args", "youtube:player_client=android",
@@ -99,7 +99,7 @@ async function uploadToServer(filePath) {
throw new Error("Server response missing url");
}
return result.url.startsWith("http") ? result.url : `http://maneos.net${result.url}`;
return result.url.startsWith("https") ? result.url : `https://maneos.net${result.url}`;
}
export default async function ({ msg, api }) {