Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: threads support #575

Open
wants to merge 14 commits into
base: main
Choose a base branch
from
Prev Previous commit
Next Next commit
Merge branch 'current' into feat/threads
Snazzah authored Jul 28, 2024

Verified

This commit was signed with the committer’s verified signature.
JasonGrace2282 Aarush Deshpande
commit bb04206e012b6f4fd2aea9c91a7218455d035e3c
8 changes: 7 additions & 1 deletion src/modules/processing/match.js
Original file line number Diff line number Diff line change
@@ -27,6 +27,7 @@ import dailymotion from "./services/dailymotion.js";
import snapchat from "./services/snapchat.js";
import loom from "./services/loom.js";
import threads from "./services/threads.js";
import facebook from "./services/facebook.js";

let freebind;

@@ -206,7 +207,12 @@ export default async function(host, patternMatch, lang, obj) {
...patternMatch,
quality: obj.vQuality,
dispatcher
})
});
break;
case "facebook":
r = await facebook({
...patternMatch
});
break;
default:
return createResponse("error", {
1 change: 1 addition & 0 deletions src/modules/processing/matchActionDecider.js
Original file line number Diff line number Diff line change
@@ -74,6 +74,7 @@ export default function(r, host, userFormat, isAudioOnly, lang, isAudioMuted, di
case "instagram":
case "twitter":
case "threads":
case "snapchat":
params = { picker: r.picker };
break;
case "tiktok":
13 changes: 13 additions & 0 deletions src/modules/processing/servicesConfig.json
Original file line number Diff line number Diff line change
@@ -130,6 +130,19 @@
"tld": "net",
"patterns": [":user/post/:id"],
"enabled": true
},
"facebook": {
"alias": "facebook videos",
"altDomains": ["fb.watch"],
"subdomains": ["web"],
"patterns": [
"_shortLink/:shortLink",
":username/videos/:caption/:id",
":username/videos/:id",
"reel/:id",
"share/:shareType/:id"
],
"enabled": true
}
}
}
You are viewing a condensed version of this merge commit. You can view the full changes here.