5.4: instagram support

This commit is contained in:
wukko
2023-04-25 01:01:25 +06:00
parent b4eddd06fe
commit 0dca373237
17 changed files with 146 additions and 56 deletions

View File

@@ -15,6 +15,7 @@ import tiktok from "./services/tiktok.js";
import tumblr from "./services/tumblr.js";
import vimeo from "./services/vimeo.js";
import soundcloud from "./services/soundcloud.js";
import instagram from "./services/instagram.js";
export default async function (host, patternMatch, url, lang, obj) {
try {
@@ -102,6 +103,9 @@ export default async function (host, patternMatch, url, lang, obj) {
format: obj.aFormat
});
break;
case "instagram":
r = await instagram({ id: patternMatch["id"] ? patternMatch["id"] : false });
break;
default:
return apiJSON(0, { t: errorUnsupported(lang) });
}