api/processing: add support for xiaohongshu

This commit is contained in:
wukko
2025-01-20 19:10:02 +06:00
parent 63b2681017
commit ed8f4353ea
6 changed files with 165 additions and 8 deletions

View File

@@ -28,6 +28,7 @@ import snapchat from "./services/snapchat.js";
import loom from "./services/loom.js";
import facebook from "./services/facebook.js";
import bluesky from "./services/bluesky.js";
import xiaohongshu from "./services/xiaohongshu.js";
let freebind;
@@ -239,6 +240,15 @@ export default async function({ host, patternMatch, params }) {
});
break;
case "xiaohongshu":
r = await xiaohongshu({
...patternMatch,
h265: params.tiktokH265,
isAudioOnly,
dispatcher,
});
break;
default:
return createResponse("error", {
code: "error.api.service.unsupported"