mirror of
https://github.com/oddluck/limnoria-plugins.git
synced 2025-04-25 20:41:21 -05:00
Update Spiffytitles/Reddit
ugly, but works.
This commit is contained in:
parent
5d1ca4bf86
commit
aaf93b337b
@ -1460,19 +1460,19 @@ class SpiffyTitles(callbacks.Plugin):
|
||||
"thread": {
|
||||
"pattern": r"^/r/(?P<subreddit>[^/]+)/comments/(?P<thread>[^/]+)"
|
||||
r"(?:/[^/]+/?)?$",
|
||||
"url": "https://www.reddit.com/r/{subreddit}/comments/{thread}.json",
|
||||
"url": "https://old.reddit.com/r/{subreddit}/comments/{thread}.json",
|
||||
},
|
||||
"comment": {
|
||||
"pattern": r"^/r/(?P<subreddit>[^/]+)/comments/(?P<thread>[^/]+)/"
|
||||
r"[^/]+/(?P<comment>\w+/?)$",
|
||||
"url": (
|
||||
"https://www.reddit.com/r/{subreddit}/comments/{thread}/x/"
|
||||
"https://old.reddit.com/r/{subreddit}/comments/{thread}/x/"
|
||||
"{comment}.json"
|
||||
),
|
||||
},
|
||||
"user": {
|
||||
"pattern": r"^/u(?:ser)?/(?P<user>[^/]+)/?$",
|
||||
"url": "https://www.reddit.com/user/{user}/about.json",
|
||||
"url": "https://old.reddit.com/user/{user}/about.json",
|
||||
},
|
||||
}
|
||||
info = urlparse(url)
|
||||
|
Loading…
x
Reference in New Issue
Block a user