1
0

Compare commits

...

5 Commits

Author SHA1 Message Date
a45308532e 🤖 Bumped version to 0.1.13
Some checks failed
Package Python / Package (push) Failing after 21s
Test Python / Test (push) Failing after 21s
This commit was automatically generated by a script: https://gitfub.space/Jmaa/python-omni
2024-07-08 19:07:01 +02:00
864d1a8aa1 🤖 Repository layout updated to latest version
This commit was automatically generated by a script: https://gitfub.space/Jmaa/python-omni
2024-07-08 19:06:10 +02:00
9fc6c778de
Docstring 2024-07-08 19:06:01 +02:00
039f8fbeac
Ruff format 2024-07-08 18:55:55 +02:00
4084eb8305
Ruff fix 2024-07-08 18:55:45 +02:00
4 changed files with 13 additions and 5 deletions

View File

@ -1,4 +1,8 @@
# Socials-util <!--- WARNING ---!>
<!--- THIS IS AN AUTO-GENERATED FILE ---!>
<!--- MANUAL CHANGES CAN AND WILL BE OVERWRITTEN ---!>
# Socials-util.
Python library for parsing and processing URLs of Social Media Sites. Python library for parsing and processing URLs of Social Media Sites.

View File

@ -1,4 +1,9 @@
"""Small utility for detecting social websites.""" """# Socials-util.
Python library for parsing and processing URLs of Social Media Sites.
Used by one-page-internet.
"""
import re import re
import urllib.parse import urllib.parse
@ -439,7 +444,7 @@ def determine_social_from_url_internally(
# Regexes # Regexes
for social_site_url_regex, social_site_id in REGEXES: for social_site_url_regex, social_site_id in REGEXES:
if m := re.fullmatch(social_site_url_regex, url, re.I): if m := re.fullmatch(social_site_url_regex, url, re.IGNORECASE):
groups = m.groups() groups = m.groups()
username_or_id = groups[0] if len(groups) > 0 else None username_or_id = groups[0] if len(groups) > 0 else None
if username_or_id in DISALLOWED_IDENTIFIERS: if username_or_id in DISALLOWED_IDENTIFIERS:

View File

@ -1 +1 @@
__version__ = '0.1.12' __version__ = '0.1.13'

View File

@ -178,7 +178,6 @@ PARSABLE_SOCIAL_IDS_COMBINED: list[tuple[str, object, str]] = [
'solquiet', 'solquiet',
), ),
('https://solquiet.deviantart.com/', SocialSiteId.DEVIANT_ART_ACCOUNT, 'solquiet'), ('https://solquiet.deviantart.com/', SocialSiteId.DEVIANT_ART_ACCOUNT, 'solquiet'),
# Cara # Cara
('https://cara.app/simzart', SocialSiteId.CARA_PROFILE, 'simzart'), ('https://cara.app/simzart', SocialSiteId.CARA_PROFILE, 'simzart'),
('https://cara.app/simzart/all', SocialSiteId.CARA_PROFILE, 'simzart'), ('https://cara.app/simzart/all', SocialSiteId.CARA_PROFILE, 'simzart'),