services: add facebook support (#403)

* feat: add facebook support

* chore: fix fail check

* chore: minor fix

* chore: add service in README.md

* chore: cleaning post-merge code

* facebook: add shared link pattern

* chore: clean up removing unnecessarily code

* fix: facebook shared link pattern

* matchActionDecider: redirect to facebook video instead of rendering

* facebook: pass sourceUrl in object

* url: fix botched lint

* fix: facebook shared link pattern with clean up

* test: change facebook test response to redirect

---------

Co-authored-by: dumbmoron <log@riseup.net>
This commit is contained in:
Brama Udi
2024-07-24 22:05:21 +07:00
committed by GitHub
parent 31e1fa5c5c
commit c77ee2eb44
8 changed files with 159 additions and 2 deletions

View File

@@ -118,6 +118,19 @@
"alias": "loom videos",
"patterns": ["share/: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/:shortLink/:id"
],
"enabled": true
}
}
}