diff --git a/src/modules/processing/servicesConfig.json b/src/modules/processing/servicesConfig.json index 4f07ebda..886c44b9 100644 --- a/src/modules/processing/servicesConfig.json +++ b/src/modules/processing/servicesConfig.json @@ -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" diff --git a/src/modules/processing/url.js b/src/modules/processing/url.js index b272ff80..11f073d1 100644 --- a/src/modules/processing/url.js +++ b/src/modules/processing/url.js @@ -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