1
0

Linked in and Steam app
All checks were successful
Python Package / Package (push) Has been skipped

This commit is contained in:
Jon Michael Aanes 2024-02-17 21:02:42 +01:00
parent 291cbfd3e6
commit a37027dd8a

View File

@ -60,10 +60,12 @@ class SocialSiteId(aenum.Enum):
COHOST_PROFILE = 117203288 COHOST_PROFILE = 117203288
SOUNDCLOUD_ARTIST = 3040 SOUNDCLOUD_ARTIST = 3040
IGDB_GAME_ID = 5794 IGDB_GAME_ID = 5794
STEAM_APPLICATION_ID = 1733
GITHUB_REPOSITORY = 364 GITHUB_REPOSITORY = 364
PLURK = 32111 PLURK = 32111
LINKEDIN_PERSONAL_PROFILE = 6634
# Browser bookmarks # Browser bookmarks
FIREFOX_PROFILE_BOOKMARKS = 33 FIREFOX_PROFILE_BOOKMARKS = 33
@ -141,7 +143,9 @@ WIKIDATA_PROPERTIES = {
SocialSiteId.COHOST_PROFILE: WikidataInfo(None, 117203288), SocialSiteId.COHOST_PROFILE: WikidataInfo(None, 117203288),
SocialSiteId.SOUNDCLOUD_ARTIST: WikidataInfo(3040, None), SocialSiteId.SOUNDCLOUD_ARTIST: WikidataInfo(3040, None),
SocialSiteId.IGDB_GAME_ID: WikidataInfo(5794, None), SocialSiteId.IGDB_GAME_ID: WikidataInfo(5794, None),
SocialSiteId.STEAM_APPLICATION_ID: WikidataInfo(1733, None),
SocialSiteId.GITHUB_REPOSITORY: WikidataInfo(None, 364), SocialSiteId.GITHUB_REPOSITORY: WikidataInfo(None, 364),
SocialSiteId.LINKEDIN_PERSONAL_PROFILE: WikidataInfo(6634, None),
} }
def re_social_subdomain(main_domain): def re_social_subdomain(main_domain):
@ -319,11 +323,17 @@ REGEXES = [
# IGDB # IGDB
(re_social_path_adv('igdb.com', 'games', RE_ID), SocialSiteId.IGDB_GAME_ID), (re_social_path_adv('igdb.com', 'games', RE_ID), SocialSiteId.IGDB_GAME_ID),
# Steam game
(re_social_path_adv('store.steampowered.com', 'app', RE_ID, RE_ANY_SUBPATH), SocialSiteId.STEAM_APPLICATION_ID),
# Github # Github
(re_social_path_adv('github.com', RE_DUAL_ID), SocialSiteId.GITHUB_REPOSITORY), (re_social_path_adv('github.com', RE_DUAL_ID), SocialSiteId.GITHUB_REPOSITORY),
# Plurk # Plurk
(re_social_path_adv('plurk.com', RE_ID), SocialSiteId.PLURK), (re_social_path_adv('plurk.com', RE_ID), SocialSiteId.PLURK),
# Linked in
(re_social_path_adv('linkedin.com', 'in', RE_ID), SocialSiteId.LINKEDIN_PERSONAL_PROFILE),
] ]
WELL_KNOWN_MASTODON_INSTANCES = frozenset({ WELL_KNOWN_MASTODON_INSTANCES = frozenset({