Merge pull request 'feat/video-audio-https' (#3) from feat/video-audio-https into master
Reviewed-on: synt-xerror/manyplug-repo#3
This commit was merged in pull request #3.
This commit is contained in:
@@ -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 }) {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "audio",
|
||||
"author": "SyntaxError <dev@maneos.net> (https://git.maneos.net)",
|
||||
"version": "2.0.0",
|
||||
"version": "2.1.0",
|
||||
"category": "media",
|
||||
"service": false,
|
||||
"externalDependencies": {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"lastUpdated": "2026-04-21T13:43:02.354Z",
|
||||
"lastUpdated": "2026-04-21T16:31:08.265Z",
|
||||
"plugins": {
|
||||
"a": {
|
||||
"name": "a",
|
||||
@@ -20,7 +20,7 @@
|
||||
"audio": {
|
||||
"name": "audio",
|
||||
"author": "SyntaxError <dev@maneos.net> (https://git.maneos.net)",
|
||||
"version": "2.0.0",
|
||||
"version": "2.1.0",
|
||||
"category": "media",
|
||||
"service": false,
|
||||
"externalDependencies": {
|
||||
@@ -63,7 +63,7 @@
|
||||
"video": {
|
||||
"name": "video",
|
||||
"author": "SyntaxError <dev@maneos.net> (https://git.maneos.net)",
|
||||
"version": "2.0.0",
|
||||
"version": "2.1.0",
|
||||
"category": "media",
|
||||
"service": false,
|
||||
"externalDependencies": {
|
||||
|
||||
@@ -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 }) {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "video",
|
||||
"author": "SyntaxError <dev@maneos.net> (https://git.maneos.net)",
|
||||
"version": "2.0.0",
|
||||
"version": "2.1.0",
|
||||
"category": "media",
|
||||
"service": false,
|
||||
"externalDependencies": {
|
||||
|
||||
Reference in New Issue
Block a user