mirror of
https://github.com/imputnet/cobalt.git
synced 2025-07-18 19:28:29 +00:00
feat: ddinstagram.com support
This commit is contained in:
parent
8e1606f50c
commit
68d8fa1515
@ -77,6 +77,8 @@
|
||||
},
|
||||
"instagram": {
|
||||
"alias": "instagram reels, posts & stories",
|
||||
"altDomains": ["ddinstagram.com"],
|
||||
"subdomains": ["d", "g"],
|
||||
"patterns": [
|
||||
"reels/:postId", "reel/:postId", "p/:postId", ":username/p/:postId",
|
||||
"tv/:postId", "stories/:username/:storyId"
|
||||
|
@ -64,6 +64,11 @@ export function aliasURL(url) {
|
||||
if (url.hostname === 'dai.ly' && parts.length === 2) {
|
||||
url = new URL(`https://dailymotion.com/video/${parts[1]}`)
|
||||
}
|
||||
case "ddinstagram":
|
||||
if (services.instagram.altDomains.includes(url.hostname)) {
|
||||
url.hostname = 'instagram.com'
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
return url
|
||||
|
Loading…
Reference in New Issue
Block a user