mirror of
https://github.com/oddluck/limnoria-plugins.git
synced 2025-04-29 06:51:12 -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": {
|
"thread": {
|
||||||
"pattern": r"^/r/(?P<subreddit>[^/]+)/comments/(?P<thread>[^/]+)"
|
"pattern": r"^/r/(?P<subreddit>[^/]+)/comments/(?P<thread>[^/]+)"
|
||||||
r"(?:/[^/]+/?)?$",
|
r"(?:/[^/]+/?)?$",
|
||||||
"url": "https://www.reddit.com/r/{subreddit}/comments/{thread}.json",
|
"url": "https://old.reddit.com/r/{subreddit}/comments/{thread}.json",
|
||||||
},
|
},
|
||||||
"comment": {
|
"comment": {
|
||||||
"pattern": r"^/r/(?P<subreddit>[^/]+)/comments/(?P<thread>[^/]+)/"
|
"pattern": r"^/r/(?P<subreddit>[^/]+)/comments/(?P<thread>[^/]+)/"
|
||||||
r"[^/]+/(?P<comment>\w+/?)$",
|
r"[^/]+/(?P<comment>\w+/?)$",
|
||||||
"url": (
|
"url": (
|
||||||
"https://www.reddit.com/r/{subreddit}/comments/{thread}/x/"
|
"https://old.reddit.com/r/{subreddit}/comments/{thread}/x/"
|
||||||
"{comment}.json"
|
"{comment}.json"
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
"user": {
|
"user": {
|
||||||
"pattern": r"^/u(?:ser)?/(?P<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)
|
info = urlparse(url)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user