add instagram support
Marco Andronaco andronacomarco@gmail.com
Fri, 25 Aug 2023 21:57:11 +0200
1 files changed,
4 insertions(+),
0 deletions(-)
jump to
M
Replacer.py
→
Replacer.py
@@ -20,6 +20,10 @@ {
"regex": re.compile(r"(?:https?:\/\/)?(?:www\.)?x\.com\/(?:#!\/)?(.*)\/status(?:es)?\/([^\/\?\s]+)", re_flags), "becomes": "https://fixupx.com/{}/status/{}", }, + { + "regex": re.compile(r"(?:https?:\/\/)?(?:www\.)?instagram\.com\/((?:reel)|p)\/([A-Za-z0-9_]{11})[\/\?\w=&]*", re_flags), + "becomes": "https://ddinstagram.com/{}/{}", + }, ] link_message = "Da {}[\.]({})"