Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
ggogel committed Aug 30, 2023
2 parents e3c98f3 + 8c053e7 commit 5c5759e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# SocialMediaDownloadMaubot

[Maubot](https://github.com/maubot/maubot) plugin that downloads content from various social media websites given a link.
[Maubot](https://github.com/maubot/maubot) plugin that downloads content from various social media websites given a link and posts it to the Matrix room.

Currently supported:
- Reddit
Expand Down
2 changes: 1 addition & 1 deletion socialmediadownload.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def do_update(self, helper: ConfigUpdateHelper) -> None:
for suffix in ["enabled", "info", "image", "video", "thumbnail"]:
helper.copy(f"{prefix}.{suffix}")

reddit_pattern = re.compile(r"^((?:https?:)?\/\/)?((?:www|m)\.)?((?:reddit\.com|redd.it))(\/r\/.*\/comments\/.*)(\/)?$")
reddit_pattern = re.compile(r"^((?:https?:)?\/\/)?((?:www|m|old|nm)\.)?((?:reddit\.com|redd.it))(\/r\/.*\/comments\/.*)(\/)?$")
instagram_pattern = re.compile(r"/(?:https?:\/\/)?(?:www.)?instagram.com\/?([a-zA-Z0-9\.\_\-]+)?\/([p]+)?([reel]+)?([tv]+)?([stories]+)?\/([a-zA-Z0-9\-\_\.]+)\/?([0-9]+)?/")
youtube_pattern = re.compile(r"^((?:https?:)?\/\/)?((?:www|m)\.)?((?:youtube\.com|youtu.be))(\/(?:[\w\-]+\?v=|embed\/|v\/)?)([\w\-]+)(\S+)?$")

Expand Down

0 comments on commit 5c5759e

Please sign in to comment.