1
0

Fixed reddit user parsing
All checks were successful
Test Python / Test (push) Successful in 24s

This commit is contained in:
Jon Michael Aanes 2024-08-25 19:13:11 +02:00
parent 12a9a3d5ac
commit dc942589fd
Signed by: Jmaa
SSH Key Fingerprint: SHA256:Ab0GfHGCblESJx7JRE4fj4bFy/KRpeLhi41y4pF3sNA
2 changed files with 6 additions and 1 deletions

View File

@ -241,7 +241,7 @@ MAILTO_URL = r'^mailto:(?:[\w._.]+@[\w._.]+)$'
REDDIT_SUBREDDIT_URL = r'^(?:https?:\/\/)?(?:old\.)?reddit\.com\/r\/([\w-]+)\/?$' REDDIT_SUBREDDIT_URL = r'^(?:https?:\/\/)?(?:old\.)?reddit\.com\/r\/([\w-]+)\/?$'
REDDIT_USER_URL = ( REDDIT_USER_URL = (
r'^(?:https?:\/\/)?(?:old\.)?reddit\.com\/user\/([\w-]+)(?:|\/submitted)\/?$' r'^(?:https?:\/\/)?(?:old\.|www\.)?reddit\.com\/user\/([\w-]+)(?:|\/submitted)\/?$'
) )
TWITTER_HANDLE_URL_1 = re_social_path_adv('twitter.com', RE_ID, RE_ANY_SUBPATH) TWITTER_HANDLE_URL_1 = re_social_path_adv('twitter.com', RE_ID, RE_ANY_SUBPATH)
TWITTER_HANDLE_URL_2 = re_social_path_adv('x.com', RE_ID, RE_ANY_SUBPATH) TWITTER_HANDLE_URL_2 = re_social_path_adv('x.com', RE_ID, RE_ANY_SUBPATH)

View File

@ -54,6 +54,11 @@ PARSABLE_SOCIAL_IDS_COMBINED: list[tuple[str, object, str]] = [
SocialSiteId.REDDIT_USER, SocialSiteId.REDDIT_USER,
'Harpsibored', 'Harpsibored',
), ),
(
'https://www.reddit.com/user/Harpsibored',
SocialSiteId.REDDIT_USER,
'Harpsibored',
),
# Ko-fi formats # Ko-fi formats
('https://ko-fi.com/A627LI1/shop/', SocialSiteId.KO_FI, 'A627LI1'), ('https://ko-fi.com/A627LI1/shop/', SocialSiteId.KO_FI, 'A627LI1'),
('https://ko-fi.com/A627LI1/shop', SocialSiteId.KO_FI, 'A627LI1'), ('https://ko-fi.com/A627LI1/shop', SocialSiteId.KO_FI, 'A627LI1'),