mirror of
https://github.com/imputnet/cobalt.git
synced 2026-11-06 09:48:13 +00:00
5.4: instagram support
This commit is contained in:
parent
b4eddd06fe
commit
0dca373237
17 changed files with 146 additions and 56 deletions
|
|
@ -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) });
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue