Update Spiffytitles/Reddit

ugly, but works.
This commit is contained in:
fred 2024-02-25 20:57:57 +01:00 committed by GitHub
parent 5d1ca4bf86
commit aaf93b337b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)